2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/ast/TopLevelStatements.h"
|
2020-08-17 22:53:03 -07:00
|
|
|
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
|
|
|
|
#include "bscript/compiler/ast/Statement.h"
|
2020-08-17 22:53:03 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
TopLevelStatements::TopLevelStatements( const SourceLocation& source_location )
|
|
|
|
|
: Node( source_location )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TopLevelStatements::accept( NodeVisitor& visitor )
|
|
|
|
|
{
|
|
|
|
|
visitor.visit_top_level_statements( *this );
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-12 06:51:44 +01:00
|
|
|
void TopLevelStatements::describe_to( std::string& w ) const
|
2020-08-17 22:53:03 -07:00
|
|
|
{
|
2024-01-12 06:51:44 +01:00
|
|
|
w += "top-level-statements";
|
2020-08-17 22:53:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|