diff dmd/TemplateThisParameter.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/TemplateThisParameter.d	Sat Oct 24 08:42:06 2009 +0400
@@ -0,0 +1,39 @@
+module dmd.TemplateThisParameter;
+
+import dmd.TemplateTypeParameter;
+import dmd.Type;
+import dmd.Loc;
+import dmd.Identifier;
+import dmd.TemplateParameter;
+import dmd.OutBuffer;
+import dmd.HdrGenState;
+
+class TemplateThisParameter : TemplateTypeParameter
+{
+    /* Syntax:
+     *	this ident : specType = defaultType
+     */
+    Type specType;	// type parameter: if !=NULL, this is the type specialization
+    Type defaultType;
+
+    this(Loc loc, Identifier ident, Type specType, Type defaultType)
+	{
+		assert(false);
+		super(loc, ident, specType, defaultType);
+	}
+
+    TemplateThisParameter isTemplateThisParameter()
+	{	
+		assert(false);
+	}
+	
+    TemplateParameter syntaxCopy()
+	{
+		assert(false);
+	}
+	
+    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	{
+		assert(false);
+	}
+}
\ No newline at end of file