polserver/pol-core/bscript/compiler/ast/EnumDeclaration.cpp
turleypol 1463b76c7c
Includes are now all relative to pol-core basefolder (#906)
* 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
2026-07-25 23:01:18 +02:00

30 lines
827 B
C++

#include "bscript/compiler/ast/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