Mercurial > projects > ddmd
diff dmd/CtorDeclaration.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 | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/CtorDeclaration.d Sun Sep 05 15:32:22 2010 +0400 +++ b/dmd/CtorDeclaration.d Thu Sep 09 22:51:44 2010 +0100 @@ -19,15 +19,15 @@ import dmd.Statement; import dmd.ReturnStatement; import dmd.CompoundStatement; -import dmd.Argument; +import dmd.Parameter; import dmd.Id; class CtorDeclaration : FuncDeclaration { - Arguments arguments; + Parameters arguments; int varargs; - this(Loc loc, Loc endloc, Arguments arguments, int varargs) + this(Loc loc, Loc endloc, Parameters arguments, int varargs) { super(loc, endloc, Id.ctor, STC.STCundefined, null); @@ -46,7 +46,7 @@ f.fbody = fbody ? fbody.syntaxCopy() : null; assert(!fthrows); // deprecated - f.arguments = Argument.arraySyntaxCopy(arguments); + f.arguments = Parameter.arraySyntaxCopy(arguments); return f; } @@ -103,7 +103,7 @@ sc.pop(); // See if it's the default constructor - if (ad && varargs == 0 && Argument.dim(arguments) == 0) + if (ad && varargs == 0 && Parameter.dim(arguments) == 0) { if (ad.isStructDeclaration()) error("default constructor not allowed for structs"); else