polserver/pol-core/bscript/compiler/ast/CaseDispatchGroups.cpp
turleypol d848deae18
POLLOG* macros use the new formatting (#598)
* POLLOG* macros use the new formatting
removed all old logging functions

* removed old fmt lib from everything except StreamWriter
removed unneeded functions

* fixed review comments
2024-01-16 17:55:42 +01:00

30 lines
729 B
C++

#include "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