public VarDefNode(VarSpecNode varSpec) { VarSpec = varSpec; }
private VarSpecNode varSpec() { EnterRule_varSpec(); EnterRule("varSpec", 6); TraceIn("varSpec", 6); VarSpecNode node = default(VarSpecNode); CommonTree IDENT14 = default(CommonTree); TypeSpecNode typeSpec13 = default(TypeSpecNode); node = new VarSpecNode(); try { DebugEnterRule(GrammarFileName, "varSpec"); DebugLocation(65, 0); try { // Grammar\\SimpleCTreeWalker.g:68:3: ( ^( VAR_SPEC typeSpec IDENT ) ) DebugEnterAlt(1); // Grammar\\SimpleCTreeWalker.g:69:2: ^( VAR_SPEC typeSpec IDENT ) { DebugLocation(69, 2); DebugLocation(69, 4); Match(input,VAR_SPEC,Follow._VAR_SPEC_in_varSpec242); Match(input, TokenTypes.Down, null); DebugLocation(69, 13); PushFollow(Follow._typeSpec_in_varSpec244); typeSpec13=typeSpec(); PopFollow(); DebugLocation(69, 22); IDENT14=(CommonTree)Match(input,IDENT,Follow._IDENT_in_varSpec246); Match(input, TokenTypes.Up, null); DebugLocation(69, 29); node.TypeSpec = typeSpec13; node.Name = IDENT14.Text; } } catch (RecognitionException re) { ReportError(re); Recover(input,re); } finally { TraceOut("varSpec", 6); LeaveRule("varSpec", 6); LeaveRule_varSpec(); } DebugLocation(73, 0); } finally { DebugExitRule(GrammarFileName, "varSpec"); } return node; }
public void Add(VarSpecNode varSpec) { Add(new VarDefNode(varSpec)); }