polserver/pol-core/bscript/compiler/ast/LoopStatement.cpp

15 lines
456 B
C++
Raw Permalink Normal View History

#include "bscript/compiler/ast/LoopStatement.h"
#include "bscript/compiler/model/FlowControlLabel.h"
namespace Pol::Bscript::Compiler
{
LoopStatement::LoopStatement( const SourceLocation& source_location, std::string label )
: LabelableStatement( source_location, std::move( label ) ),
break_label( std::make_shared<FlowControlLabel>() ),
continue_label( std::make_shared<FlowControlLabel>() )
{
}
} // namespace Pol::Bscript::Compiler