2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/ast/EmptyStatement.h"
|
2020-09-09 23:46:19 -07:00
|
|
|
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
2020-09-09 23:46:19 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
EmptyStatement::EmptyStatement( const SourceLocation& source_location )
|
|
|
|
|
: Statement( source_location )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void EmptyStatement::accept( NodeVisitor& visitor )
|
|
|
|
|
{
|
|
|
|
|
visitor.visit_empty_statement( *this );
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-12 06:51:44 +01:00
|
|
|
void EmptyStatement::describe_to( std::string& w ) const
|
2020-09-09 23:46:19 -07:00
|
|
|
{
|
2024-01-12 06:51:44 +01:00
|
|
|
w += "empty-statement";
|
2020-09-09 23:46:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|