2020-08-30 22:55:30 -07:00
|
|
|
#include "ExitStatement.h"
|
|
|
|
|
|
|
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/ast/NodeVisitor.h"
|
2020-08-30 22:55:30 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
ExitStatement::ExitStatement( const SourceLocation& source_location ) : Statement( source_location )
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ExitStatement::accept( NodeVisitor& visitor )
|
|
|
|
|
{
|
|
|
|
|
visitor.visit_exit_statement( *this );
|
|
|
|
|
}
|
|
|
|
|
|
2024-01-12 06:51:44 +01:00
|
|
|
void ExitStatement::describe_to( std::string& w ) const
|
2020-08-30 22:55:30 -07:00
|
|
|
{
|
2024-01-12 06:51:44 +01:00
|
|
|
w += "exit-statement";
|
2020-08-30 22:55:30 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|