Mercurial > projects > ddmd
diff dmd/IsExp.d @ 130:60bb0fe4563e
dmdfe 2.037 first main iteration
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 09 Sep 2010 22:51:44 +0100 |
parents | 1765f3ef917d |
children | af1bebfd96a4 |
line wrap: on
line diff
--- a/dmd/IsExp.d Sun Sep 05 15:32:22 2010 +0400 +++ b/dmd/IsExp.d Thu Sep 09 22:51:44 2010 +0100 @@ -28,7 +28,7 @@ import dmd.TypeFunction; import dmd.MATCH; import dmd.TypePointer; -import dmd.Argument; +import dmd.Parameter; import dmd.Token; class IsExp : Expression @@ -164,11 +164,11 @@ goto Lno; else { ClassDeclaration cd = (cast(TypeClass)targ).sym; - auto args = new Arguments; + auto args = new Parameters; args.reserve(cd.baseclasses.dim); foreach (b; cd.baseclasses) { - args.push(new Argument(STCin, b.type, null, null)); + args.push(new Parameter(STCin, b.type, null, null)); } tded = new TypeTuple(args); } @@ -195,15 +195,15 @@ /* Generate tuple from function parameter types. */ assert(tded.ty == Tfunction); - Arguments params = (cast(TypeFunction)tded).parameters; - size_t dim = Argument.dim(params); - Arguments args = new Arguments; + auto params = (cast(TypeFunction)tded).parameters; + size_t dim = Parameter.dim(params); + auto args = new Parameters; args.reserve(dim); for (size_t i = 0; i < dim; i++) { - auto arg = Argument.getNth(params, i); + auto arg = Parameter.getNth(params, i); assert(arg && arg.type); - args.push(new Argument(arg.storageClass, arg.type, null, null)); + args.push(new Parameter(arg.storageClass, arg.type, null, null)); } tded = new TypeTuple(args); break;