mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
26 lines
530 B
C++
26 lines
530 B
C++
|
|
#include "TopLevelStatements.h"
|
||
|
|
|
||
|
|
#include <format/format.h>
|
||
|
|
|
||
|
|
#include "compiler/ast/NodeVisitor.h"
|
||
|
|
#include "compiler/ast/Statement.h"
|
||
|
|
|
||
|
|
namespace Pol::Bscript::Compiler
|
||
|
|
{
|
||
|
|
TopLevelStatements::TopLevelStatements( const SourceLocation& source_location )
|
||
|
|
: Node( source_location )
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
void TopLevelStatements::accept( NodeVisitor& visitor )
|
||
|
|
{
|
||
|
|
visitor.visit_top_level_statements( *this );
|
||
|
|
}
|
||
|
|
|
||
|
|
void TopLevelStatements::describe_to( fmt::Writer& w ) const
|
||
|
|
{
|
||
|
|
w << "top-level-statements";
|
||
|
|
}
|
||
|
|
|
||
|
|
} // namespace Pol::Bscript::Compiler
|