ParameterDeclaration ConvertXmlDocParameter(DocumentationParameter p) { ParameterDeclaration result = new ParameterDeclaration(); switch (p.Modifier) { case Parameter.Modifier.OUT: result.ParameterModifier = ParameterModifier.Out; break; case Parameter.Modifier.REF: result.ParameterModifier = ParameterModifier.Ref; break; case Parameter.Modifier.PARAMS: result.ParameterModifier = ParameterModifier.Params; break; } if (p.Type != null) { result.Type = ConvertToType(p.Type); } return result; }
void case_1030() #line 7010 "cs-parser.jay" { if (yyVals[-1+yyTop] != null) yyVal = new DocumentationParameter ((Parameter.Modifier) yyVals[-1+yyTop], (FullNamedExpression) yyVals[0+yyTop]); else yyVal = new DocumentationParameter ((FullNamedExpression) yyVals[0+yyTop]); }