diff dmd/TypeNewArray.d @ 79:43073c7c7769

updated to 2.035 also implemented a few missing functions still crashes in Import.importAll though
author Trass3r
date Mon, 30 Aug 2010 03:57:51 +0200
parents
children e28b18c23469
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dmd/TypeNewArray.d	Mon Aug 30 03:57:51 2010 +0200
@@ -0,0 +1,30 @@
+module dmd.TypeNewArray;
+
+import dmd.HdrGenState;
+import dmd.MOD;
+import dmd.OutBuffer;
+import dmd.Type;
+import dmd.TypeNext;
+import dmd.TY;
+
+/** T[new]
+ */
+class TypeNewArray : TypeNext
+{
+	this(Type next)
+	{
+		super(Tnarray, next);
+		//writef("TypeNewArray\n");
+	}
+
+	void toCBuffer2(OutBuffer buf, HdrGenState *hgs, MOD mod)
+	{
+		if (mod != this.mod)
+		{
+			toCBuffer3(buf, hgs, mod);
+			return;
+		}
+		next.toCBuffer2(buf, hgs, this.mod);
+		buf.writestring("[new]");
+	}
+}
\ No newline at end of file