public void AddDeclarator(FieldDeclarator declarator) { if (declarators == null) { declarators = new List <FieldDeclarator> (2); } declarators.Add(declarator); Parent.AddNameToContainer(this, declarator.Name.Value); }
void case_148() #line 1298 "cs-parser.jay" { var lt = (LocatedToken) yyVals[-1+yyTop]; yyVal = new FieldDeclarator (new SimpleMemberName (lt.Value, lt.Location), (ConstInitializer) yyVals[0+yyTop]); lbag.AddLocation (yyVal, GetLocation (yyVals[-2+yyTop])); }
void case_143() #line 1272 "cs-parser.jay" { --lexer.parsing_block; var lt = (LocatedToken) yyVals[-3+yyTop]; yyVal = new FieldDeclarator (new SimpleMemberName (lt.Value, lt.Location), (Expression) yyVals[0+yyTop]); lbag.AddLocation (yyVal, GetLocation (yyVals[-4+yyTop]), GetLocation (yyVals[-2+yyTop])); }
void case_141() #line 1262 "cs-parser.jay" { var lt = (LocatedToken) yyVals[0+yyTop]; yyVal = new FieldDeclarator (new SimpleMemberName (lt.Value, lt.Location), null); lbag.AddLocation (yyVal, GetLocation (yyVals[-1+yyTop])); }
public void AddDeclarator (FieldDeclarator declarator) { if (declarators == null) declarators = new List<FieldDeclarator> (2); declarators.Add (declarator); Parent.AddNameToContainer (this, declarator.Name.Value); }