void case_350() #line 3303 "ps-parser.jay" { CheckIsPlayScript("delegate", GetLocation(yyVals[-11+yyTop])); if (doc_support) { current_delegate.DocComment = Lexer.consume_doc_comment (); Lexer.doc_state = XmlCommentState.Allowed; } if (yyVals[-2+yyTop] != null) current_delegate.SetConstraints ((List<Constraints>) yyVals[-2+yyTop]); lbag.AddMember (current_delegate, GetModifierLocations (), GetLocation (yyVals[-11+yyTop]), GetLocation (yyVals[-9+yyTop]), GetLocation (yyVals[-6+yyTop]), GetLocation (yyVals[0+yyTop])); yyVal = current_delegate; current_delegate = null; }
void case_348() #line 3284 "ps-parser.jay" { valid_param_mod = 0; ParametersCompiled p = (ParametersCompiled) yyVals[-3+yyTop]; Delegate del = new Delegate (current_container, (FullNamedExpression) yyVals[0+yyTop], (Modifiers) yyVals[-8+yyTop], (MemberName) yyVals[-6+yyTop], p, (Attributes) yyVals[-9+yyTop]); p.CheckParameters (del); current_container.AddTypeContainer (del); current_delegate = del; lexer.ConstraintsParsing = true; }