public override object Visit(ParameterDeclarationExpression parameterDeclarationExpression, object data) { return new CodeParameterDeclarationExpression(new CodeTypeReference(ConvType(parameterDeclarationExpression.TypeReference.Type)), parameterDeclarationExpression.ParameterName); }
public object Visit(ParameterDeclarationExpression parameterDeclarationExpression, object data) { DebugOutput(parameterDeclarationExpression); // Is handled in the AppendParameters method return "// should never happen" + parameterDeclarationExpression; }
void FormalParameter( #line 1971 "VBNET.ATG" out ParameterDeclarationExpression p) { #line 1973 "VBNET.ATG" TypeReference type = null; ParamModifiers mod = new ParamModifiers(this); Expression expr = null; p = null; ArrayList arrayModifiers = null; while (StartOf(26)) { ParameterModifier( #line 1979 "VBNET.ATG" mod); } Identifier(); #line 1980 "VBNET.ATG" string parameterName = t.val; if ( #line 1981 "VBNET.ATG" IsRank()) { ArrayTypeModifiers( #line 1981 "VBNET.ATG" out arrayModifiers); } if (la.kind == 49) { lexer.NextToken(); TypeName( #line 1982 "VBNET.ATG" out type); } #line 1984 "VBNET.ATG" if(type != null) { if (arrayModifiers != null) { if (type.RankSpecifier != null) { Error("array rank only allowed one time"); } else { type.RankSpecifier = arrayModifiers; } } } else { type = new TypeReference("System.Object", arrayModifiers); } if (la.kind == 11) { lexer.NextToken(); Expr( #line 1996 "VBNET.ATG" out expr); } #line 1998 "VBNET.ATG" mod.Check(); p = new ParameterDeclarationExpression(type, parameterName, mod, expr); }
public virtual object Visit(ParameterDeclarationExpression parameterDeclarationExpression, object data) { object ret = data; foreach (AttributeSection a in parameterDeclarationExpression.Attributes) { a.AcceptVisitor(this, data); } ret = parameterDeclarationExpression.TypeReference.AcceptVisitor(this, data); if (parameterDeclarationExpression.DefaultValue != null) { ret = parameterDeclarationExpression.DefaultValue.AcceptVisitor(this, data); } return ret; }