ContinueStatement
using CLanguage.Compiler;
using CLanguage.Interpreter;
using System.Runtime.CompilerServices;
namespace CLanguage.Syntax
{
[System.Runtime.CompilerServices.NullableContext(1)]
[System.Runtime.CompilerServices.Nullable(0)]
public class ContinueStatement : Statement
{
public override bool AlwaysReturns => false;
public override void AddDeclarationToBlock(BlockContext context)
{
}
protected override void DoEmit(EmitContext ec)
{
if (ec.ContinueLabel != null)
ec.Emit(OpCode.Jump, ec.ContinueLabel);
else
ec.Report.Error(139, "No enclosing statement out of which to continue");
}
}
}