Mercurial > projects > ldc
comparison dmd/class.c @ 1607:207a8a438dea
Merge DMD r253: refactor: Argument => Parameter
---
dmd/arrayop.c | 30 ++++----
dmd/arraytypes.h | 2 +-
dmd/class.c | 8 +-
dmd/declaration.c | 10 ++--
dmd/declaration.h | 16 ++--
dmd/doc.c | 12 ++--
dmd/dsymbol.c | 4 +-
dmd/expression.c | 48 +++++++-------
dmd/expression.h | 32 +++++-----
dmd/func.c | 78 +++++++++++-----------
dmd/init.c | 2 +-
dmd/interpret.c | 8 +-
dmd/mtype.c | 190 ++++++++++++++++++++++++++--------------------------
dmd/mtype.h | 32 +++++-----
dmd/opover.c | 34 +++++-----
dmd/parse.c | 40 ++++++------
dmd/parse.h | 2 +-
dmd/statement.c | 90 +++++++++++++-------------
dmd/statement.h | 14 ++--
dmd/struct.c | 8 +-
dmd/template.c | 30 ++++----
gen/functions.cpp | 10 ++--
gen/functions.h | 2 +-
gen/tocall.cpp | 10 ++--
gen/typinf.cpp | 6 +-
25 files changed, 359 insertions(+), 359 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:20 -0300 |
parents | def7a1d494fd |
children | 79f64d5fee9e |
comparison
equal
deleted
inserted
replaced
1606:1b24e9c7cc26 | 1607:207a8a438dea |
---|---|
281 | 281 |
282 if (tb->ty == Ttuple) | 282 if (tb->ty == Ttuple) |
283 { TypeTuple *tup = (TypeTuple *)tb; | 283 { TypeTuple *tup = (TypeTuple *)tb; |
284 enum PROT protection = b->protection; | 284 enum PROT protection = b->protection; |
285 baseclasses.remove(i); | 285 baseclasses.remove(i); |
286 size_t dim = Argument::dim(tup->arguments); | 286 size_t dim = Parameter::dim(tup->arguments); |
287 for (size_t j = 0; j < dim; j++) | 287 for (size_t j = 0; j < dim; j++) |
288 { Argument *arg = Argument::getNth(tup->arguments, j); | 288 { Parameter *arg = Parameter::getNth(tup->arguments, j); |
289 b = new BaseClass(arg->type, protection); | 289 b = new BaseClass(arg->type, protection); |
290 baseclasses.insert(i + j, b); | 290 baseclasses.insert(i + j, b); |
291 } | 291 } |
292 } | 292 } |
293 else | 293 else |
1085 | 1085 |
1086 if (tb->ty == Ttuple) | 1086 if (tb->ty == Ttuple) |
1087 { TypeTuple *tup = (TypeTuple *)tb; | 1087 { TypeTuple *tup = (TypeTuple *)tb; |
1088 enum PROT protection = b->protection; | 1088 enum PROT protection = b->protection; |
1089 baseclasses.remove(i); | 1089 baseclasses.remove(i); |
1090 size_t dim = Argument::dim(tup->arguments); | 1090 size_t dim = Parameter::dim(tup->arguments); |
1091 for (size_t j = 0; j < dim; j++) | 1091 for (size_t j = 0; j < dim; j++) |
1092 { Argument *arg = Argument::getNth(tup->arguments, j); | 1092 { Parameter *arg = Parameter::getNth(tup->arguments, j); |
1093 b = new BaseClass(arg->type, protection); | 1093 b = new BaseClass(arg->type, protection); |
1094 baseclasses.insert(i + j, b); | 1094 baseclasses.insert(i + j, b); |
1095 } | 1095 } |
1096 } | 1096 } |
1097 else | 1097 else |