protected override void VisitBreakSyntax(BreakSyntax pNode)
 {
     if (!Store.GetValueOrDefault <bool>("CanBreak"))
     {
         CompilerErrors.InvalidBreakLocation(pNode.Span);
     }
     else
     {
         if (pNode.CountAsInt >= _breakCount)
         {
             CompilerErrors.InvalidBreakCount(_breakCount - 1, pNode.Span);
         }
     }
 }
Beispiel #2
0
 private void OutputBreak(BreakSyntax node, string prefix)
 {
     builder.AddFragment(new OutputFragment(prefix, DefaultColour));
     builder.AddFragment(new OutputFragment("break", StatementColour));
 }
Beispiel #3
0
 protected virtual void VisitBreakSyntax(BreakSyntax pNode)
 {
 }
Beispiel #4
0
 protected virtual SyntaxNode VisitBreakSyntax(BreakSyntax pNode)
 {
     return(pNode);
 }