public virtual Statement VisitExit(Exit exit) { return exit; }
public override Statement VisitExit(Exit exit) { if (exit == null) return null; return base.VisitExit((Exit)exit.Clone()); }
public override Statement VisitExit(Exit exit) { WriteLine("break;"); return exit; }
private Exit ParseBreak(TokenSet followers){ Exit Break = new Exit(); Break.SourceContext = this.scanner.CurrentSourceContext; if (this.sink != null && this.compoundStatementOpeningContext.Document != null) this.sink.MatchPair(this.compoundStatementOpeningContext, Break.SourceContext); Debug.Assert(this.currentToken == Token.Break); this.GetNextToken(); this.SkipSemiColon(followers); return Break; }
public EventingVisitor(Action<Exit> visitExit) { VisitedExit += visitExit; } public event Action<Exit> VisitedExit; public override Statement VisitExit(Exit exit) { if (VisitedExit != null) VisitedExit(exit); return base.VisitExit(exit); }