コード例 #1
0
 private ParseInfo(ParseInfo other)
 {
     Script          = other.Script;
     TranslateInfo   = other.TranslateInfo;
     CurrentCallInfo = other.CurrentCallInfo;
     BreakHandler    = other.BreakHandler;
     ContinueHandler = other.ContinueHandler;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public ParseInfo SetContinueHandler(IContinueContainer handler) => new ParseInfo(this)
 {
     ContinueHandler = handler
 };