diff dmd/IfStatement.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 14feb7ae01a6
line wrap: on
line diff
--- a/dmd/IfStatement.d	Sun Sep 05 15:32:22 2010 +0400
+++ b/dmd/IfStatement.d	Thu Sep 09 22:51:44 2010 +0100
@@ -2,7 +2,7 @@
 
 import dmd.common;
 import dmd.Statement;
-import dmd.Argument;
+import dmd.Parameter;
 import dmd.Loc;
 import dmd.Expression;
 import dmd.VarDeclaration;
@@ -32,14 +32,14 @@
 
 class IfStatement : Statement
 {
-    Argument arg;
+    Parameter arg;
     Expression condition;
     Statement ifbody;
     Statement elsebody;
 
     VarDeclaration match;	// for MatchExpression results
 
-    this(Loc loc, Argument arg, Expression condition, Statement ifbody, Statement elsebody)
+    this(Loc loc, Parameter arg, Expression condition, Statement ifbody, Statement elsebody)
 	{
 		super(loc);
 		this.arg = arg;
@@ -58,7 +58,7 @@
 		if (elsebody)
 			e = elsebody.syntaxCopy();
 
-		Argument a = arg ? arg.syntaxCopy() : null;
+		Parameter a = arg ? arg.syntaxCopy() : null;
 		IfStatement s = new IfStatement(loc, a, condition.syntaxCopy(), i, e);
 		return s;
 	}