private ParseInfo(ParseInfo other) { Script = other.Script; TranslateInfo = other.TranslateInfo; CurrentCallInfo = other.CurrentCallInfo; BreakHandler = other.BreakHandler; ContinueHandler = other.ContinueHandler; }
public ContinueAction(ParseInfo parseInfo, DocRange range) { // Syntax error if the continue statement is not in a loop. if (parseInfo.ContinueHandler == null) { parseInfo.Script.Diagnostics.Error("No loop to continue in.", range); } Loop = parseInfo.ContinueHandler; }
public ParseInfo SetContinueHandler(IContinueContainer handler) => new ParseInfo(this) { ContinueHandler = handler };