Mercurial > projects > ddmd
comparison dmd/FuncDeclaration.d @ 110:12c0c84d13fd
merged in 2.036 changes
author | Trass3r |
---|---|
date | Tue, 31 Aug 2010 22:29:00 +0200 |
parents | d8f19d85fadb 3a0b150c9841 |
children | e28b18c23469 |
comparison
equal
deleted
inserted
replaced
109:ceda59b4d255 | 110:12c0c84d13fd |
---|---|
1127 { Argument narg = Argument.getNth(t.arguments, j); | 1127 { Argument narg = Argument.getNth(t.arguments, j); |
1128 assert(narg.ident); | 1128 assert(narg.ident); |
1129 VarDeclaration v = sc2.search(Loc(0), narg.ident, null).isVarDeclaration(); | 1129 VarDeclaration v = sc2.search(Loc(0), narg.ident, null).isVarDeclaration(); |
1130 assert(v); | 1130 assert(v); |
1131 Expression e = new VarExp(v.loc, v); | 1131 Expression e = new VarExp(v.loc, v); |
1132 exps.data[j] = cast(void*)e; | 1132 exps[j] = e; |
1133 } | 1133 } |
1134 assert(arg.ident); | 1134 assert(arg.ident); |
1135 TupleDeclaration v = new TupleDeclaration(loc, arg.ident, exps); | 1135 auto v = new TupleDeclaration(loc, arg.ident, exps); |
1136 //printf("declaring tuple %s\n", v.toChars()); | 1136 //printf("declaring tuple %s\n", v.toChars()); |
1137 v.isexp = 1; | 1137 v.isexp = 1; |
1138 if (!sc2.insert(v)) | 1138 if (!sc2.insert(v)) |
1139 error("parameter %s.%s is already defined", toChars(), v.toChars()); | 1139 error("parameter %s.%s is already defined", toChars(), v.toChars()); |
1140 localsymtab.insert(v); | 1140 localsymtab.insert(v); |