void case_188() #line 1697 "cs-parser.jay" { Error_SyntaxError (yyToken); yyVal = new ParamsParameter ((FullNamedExpression) yyVals[-1+yyTop], null, (Attributes) yyVals[-3+yyTop], Location.Null); }
void case_187() #line 1689 "cs-parser.jay" { report.Error (1751, GetLocation (yyVals[-4+yyTop]), "Cannot specify a default value for a parameter array"); var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop]; yyVal = new ParamsParameter ((FullNamedExpression) yyVals[-3+yyTop], lt.Value, (Attributes) yyVals[-5+yyTop], lt.Location); lbag.AddLocation (yyVal, savedLocation); }
void case_186() #line 1683 "cs-parser.jay" { var lt = (Tokenizer.LocatedToken) yyVals[0+yyTop]; yyVal = new ParamsParameter ((FullNamedExpression) yyVals[-1+yyTop], lt.Value, (Attributes) yyVals[-3+yyTop], lt.Location); lbag.AddLocation (yyVal, savedLocation); }
void case_220() #line 2177 "ps-parser.jay" { Error_SyntaxError (yyToken); yyVal = new ParamsParameter ((FullNamedExpression) yyVals[0+yyTop], null, (Attributes) yyVals[-2+yyTop], Location.Null); }
void case_219() #line 2166 "ps-parser.jay" { report.Error (1751, GetLocation (yyVals[-3+yyTop]), "Cannot specify a default value for a variable argument array"); var lt = (Tokenizer.LocatedToken) yyVals[-2+yyTop]; var type = new ComposedCast ( new TypeExpression(compiler.BuiltinTypes.Object, GetLocation(yyVals[-2+yyTop])), ComposedTypeSpecifier.CreateArrayDimension (1, GetLocation (yyVals[-2+yyTop]))); yyVal = new ParamsParameter (type, lt.Value, (Attributes) yyVals[-4+yyTop], lt.Location); lbag.AddLocation (yyVal, savedLocation); }
void case_218() #line 2157 "ps-parser.jay" { var lt = (Tokenizer.LocatedToken) yyVals[0+yyTop]; var type = new ComposedCast ( new TypeExpression(compiler.BuiltinTypes.Object, GetLocation(yyVals[0+yyTop])), ComposedTypeSpecifier.CreateArrayDimension (1, GetLocation (yyVals[0+yyTop]))); yyVal = new ParamsParameter (type, lt.Value, (Attributes) yyVals[-2+yyTop], lt.Location); lbag.AddLocation (yyVal, savedLocation); }