diff dmd/DeleteDeclaration.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 9e39c7de8438
children e3afd1303184
line wrap: on
line diff
--- a/dmd/DeleteDeclaration.d	Sun Sep 05 15:32:22 2010 +0400
+++ b/dmd/DeleteDeclaration.d	Thu Sep 09 22:51:44 2010 +0100
@@ -10,7 +10,7 @@
 import dmd.HdrGenState;
 import dmd.STC;
 import dmd.Id;
-import dmd.Argument;
+import dmd.Parameter;
 import dmd.ClassDeclaration;
 import dmd.TypeFunction;
 import dmd.Type;
@@ -19,9 +19,9 @@
 
 class DeleteDeclaration : FuncDeclaration
 {
-	Arguments arguments;
+	Parameters arguments;
 
-    this(Loc loc, Loc endloc, Arguments arguments)
+    this(Loc loc, Loc endloc, Parameters arguments)
 	{
 		super(loc, endloc, Id.classDelete, STCstatic, null);
 		this.arguments = arguments;
@@ -35,7 +35,7 @@
 
 		FuncDeclaration.syntaxCopy(f);
 
-		f.arguments = Argument.arraySyntaxCopy(arguments);
+		f.arguments = Parameter.arraySyntaxCopy(arguments);
 
 		return f;
 	}
@@ -60,13 +60,13 @@
 
 		// Check that there is only one argument of type void*
 		TypeFunction tf = cast(TypeFunction)type;
-		if (Argument.dim(tf.parameters) != 1)
+		if (Parameter.dim(tf.parameters) != 1)
 		{
 			error("one argument of type void* expected");
 		}
 		else
 		{
-			Argument a = Argument.getNth(tf.parameters, 0);
+			auto a = Parameter.getNth(tf.parameters, 0);
 			if (!a.type.equals(Type.tvoid.pointerTo()))
 				error("one argument of type void* expected, not %s", a.type.toChars());
 		}
@@ -77,7 +77,7 @@
     override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
 	{
 		buf.writestring("delete");
-		Argument.argsToCBuffer(buf, hgs, arguments, 0);
+		Parameter.argsToCBuffer(buf, hgs, arguments, 0);
 		bodyToCBuffer(buf, hgs);
 	}