diff dmd/ThisDeclaration.d @ 0:10317f0c89a5

Initial commit
author korDen
date Sat, 24 Oct 2009 08:42:06 +0400
parents
children 2e2a5c3f943a
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dmd/ThisDeclaration.d	Sat Oct 24 08:42:06 2009 +0400
@@ -0,0 +1,25 @@
+module dmd.ThisDeclaration;
+
+import dmd.VarDeclaration;
+import dmd.Dsymbol;
+import dmd.Loc;
+import dmd.Type;
+import dmd.Id;
+
+// For the "this" parameter to member functions
+
+class ThisDeclaration : VarDeclaration
+{
+    this(Loc loc, Type t)
+	{
+		super(loc, t, Id.This, null);
+		noauto = true;
+	}
+	
+    Dsymbol syntaxCopy(Dsymbol)
+	{
+		assert(false);
+	}
+	
+    ThisDeclaration isThisDeclaration() { return this; }
+}
\ No newline at end of file