mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* all except pol * pol and includes under defines * something weird has happened * remove own folder from include searchpath * fixed remaining, adapted include style for external headers * missing include
30 lines
750 B
C++
30 lines
750 B
C++
#include "bscript/compiler/ast/CaseDispatchGroups.h"
|
|
|
|
|
|
#include "bscript/compiler/ast/CaseDispatchGroup.h"
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
CaseDispatchGroups::CaseDispatchGroups(
|
|
const SourceLocation& context, std::vector<std::unique_ptr<CaseDispatchGroup>> dispatch_groups )
|
|
: Node( context, std::move( dispatch_groups ) )
|
|
{
|
|
}
|
|
|
|
void CaseDispatchGroups::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_case_dispatch_groups( *this );
|
|
}
|
|
|
|
void CaseDispatchGroups::describe_to( std::string& w ) const
|
|
{
|
|
w += "case-dispatch-groups";
|
|
}
|
|
|
|
CaseDispatchGroup& CaseDispatchGroups::dispatch_group( size_t index )
|
|
{
|
|
return child<CaseDispatchGroup>( index );
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|