public override object Visit(GotoCaseStatement gotoCaseStatement, object data) { return null; }
public override object Visit(GotoCaseStatement gotoCaseStatement, object data) { DebugOutput(gotoCaseStatement); AppendIndentation();sourceText.Append("' goto case "); if (gotoCaseStatement.CaseExpression == null) { sourceText.Append("default"); } else { sourceText.Append(gotoCaseStatement.CaseExpression.AcceptVisitor(this, data)); } AppendNewLine(); return null; }
public override object Visit(GotoCaseStatement gotoCaseStatement, object data) { Console.WriteLine(gotoCaseStatement.ToString()); return gotoCaseStatement.AcceptChildren(this, data); }
public virtual object Visit(GotoCaseStatement gotoCaseStatement, object data) { if (gotoCaseStatement.CaseExpression != null) { gotoCaseStatement.CaseExpression.AcceptVisitor(this, data); } return data; }
void GotoStatement( #line 1721 "cs.ATG" out Statement stmt) { #line 1722 "cs.ATG" Expression expr; stmt = null; Expect(77); if (la.kind == 1) { lexer.NextToken(); #line 1726 "cs.ATG" stmt = new GotoStatement(t.val); Expect(10); } else if (la.kind == 54) { lexer.NextToken(); Expr( #line 1727 "cs.ATG" out expr); Expect(10); #line 1727 "cs.ATG" stmt = new GotoCaseStatement(expr); } else if (la.kind == 62) { lexer.NextToken(); Expect(10); #line 1728 "cs.ATG" stmt = new GotoCaseStatement(null); } else SynErr(174); }
public override object Visit(GotoCaseStatement gotoCaseStatement, object data) { outputFormatter.Indent(); outputFormatter.PrintToken(Tokens.Goto); outputFormatter.Space(); if (gotoCaseStatement.IsDefaultCase) { outputFormatter.PrintToken(Tokens.Default); } else { outputFormatter.PrintToken(Tokens.Case); outputFormatter.Space(); gotoCaseStatement.CaseExpression.AcceptVisitor(this, data); } outputFormatter.PrintToken(Tokens.Semicolon); outputFormatter.NewLine(); return null; }