2026-07-25 23:01:18 +02:00
|
|
|
#include "bscript/compiler/ast/LoopStatement.h"
|
2020-09-03 19:46:27 -07:00
|
|
|
|
2021-02-25 16:53:22 +01:00
|
|
|
#include "bscript/compiler/model/FlowControlLabel.h"
|
2020-09-03 19:46:27 -07:00
|
|
|
|
|
|
|
|
namespace Pol::Bscript::Compiler
|
|
|
|
|
{
|
|
|
|
|
LoopStatement::LoopStatement( const SourceLocation& source_location, std::string label )
|
2024-01-12 06:51:44 +01:00
|
|
|
: LabelableStatement( source_location, std::move( label ) ),
|
|
|
|
|
break_label( std::make_shared<FlowControlLabel>() ),
|
|
|
|
|
continue_label( std::make_shared<FlowControlLabel>() )
|
2020-09-03 19:46:27 -07:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace Pol::Bscript::Compiler
|