2020-08-17 22:53:03 -07:00
|
|
|
#include "TopLevelStatements.h"
|
|
|
|
|
|
|
|
|
|
#include <format/format.h>
|
|
|
|
|
|
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 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TopLevelStatements::describe_to( fmt::Writer& w ) const
|
|
|
|
|
{
|
|
|
|
|
w << "top-level-statements";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|