protected override Boolean handleGoto(GotoStatementNode gotoStatement, HashSet <StatementNode> visited) { var info = gotoStatement.getUserData(typeof(StatementInfo)); visitStatement(info.Target, visited); return(Boolean.FALSE); }
private Statement BindGotoStatement(GotoStatementNode node) { var targetLabelName = node.Label.Identifier.Text; // Well, maybe the label is defined further in the code. // We'll try to fix this once we are completely finished binding the function _ = Scope.TryLookupLabel(targetLabelName, out var label); return(new GotoStatement(Scope, node, label)); }
public virtual void VisitGotoStatementNode(GotoStatementNode node) { Visit(node.GotoKeywordNode); Visit(node.LabelIdNode); }
protected override Void handleGoto(GotoStatementNode gotoStatement, Void source) { return(null); }