mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* 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
30 lines
806 B
C++
30 lines
806 B
C++
#include "EnumDeclaration.h"
|
|
|
|
|
|
#include <utility>
|
|
|
|
#include "bscript/compiler/ast/Expression.h"
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
{
|
|
EnumDeclaration::EnumDeclaration( const SourceLocation& source_location, std::string identifier,
|
|
std::vector<std::string> names,
|
|
std::vector<std::unique_ptr<Expression>> expressions )
|
|
: Statement( source_location, std::move( expressions ) ),
|
|
identifier( std::move( identifier ) ),
|
|
names( std::move( names ) )
|
|
{
|
|
}
|
|
|
|
void EnumDeclaration::accept( NodeVisitor& visitor )
|
|
{
|
|
visitor.visit_enum_declaration( *this );
|
|
}
|
|
|
|
void EnumDeclaration::describe_to( std::string& w ) const
|
|
{
|
|
w += "enum-declaration";
|
|
}
|
|
|
|
} // namespace Pol::Bscript::Compiler
|