diff dmd/AlignDeclaration.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/AlignDeclaration.d	Sat Oct 24 08:42:06 2009 +0400
@@ -0,0 +1,47 @@
+module dmd.AlignDeclaration;
+
+import dmd.AttribDeclaration;
+import dmd.OutBuffer;
+import dmd.HdrGenState;
+import dmd.Scope;
+import dmd.Dsymbol;
+import dmd.Array;
+
+class AlignDeclaration : AttribDeclaration
+{
+    uint salign;
+
+    this(uint sa, Array decl)
+	{
+		super(decl);
+		salign = sa;
+	}
+	
+    Dsymbol syntaxCopy(Dsymbol s)
+	{
+		assert(false);
+	}
+	
+    void setScope(Scope sc)
+	{
+		//printf("\tAlignDeclaration::setScope '%s'\n",toChars());
+		if (decl)
+		{
+			setScopeNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign);
+		}
+	}
+	
+    void semantic(Scope sc)
+	{
+		//printf("\tAlignDeclaration::semantic '%s'\n",toChars());
+		if (decl)
+		{
+			semanticNewSc(sc, sc.stc, sc.linkage, sc.protection, sc.explicitProtection, salign);
+		}
+	}
+	
+    void toCBuffer(OutBuffer buf, HdrGenState* hgs)
+	{
+		assert(false);
+	}
+}
\ No newline at end of file