mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
31 lines
756 B
C++
31 lines
756 B
C++
#include "CaseDispatchGroups.h"
|
|
|
|
#include <format/format.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( fmt::Writer& w ) const
|
|
{
|
|
w << "case-dispatch-groups";
|
|
}
|
|
|
|
CaseDispatchGroup& CaseDispatchGroups::dispatch_group( size_t index )
|
|
{
|
|
return child<CaseDispatchGroup>( index );
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|