diff dmd/TypeInfoDeclaration.d @ 100:8e1e220cebb3

implemented missing methods
author Trass3r
date Tue, 31 Aug 2010 04:17:10 +0200
parents 43073c7c7769
children e28b18c23469
line wrap: on
line diff
--- a/dmd/TypeInfoDeclaration.d	Tue Aug 31 02:18:32 2010 +0200
+++ b/dmd/TypeInfoDeclaration.d	Tue Aug 31 04:17:10 2010 +0200
@@ -24,9 +24,9 @@
 
 class TypeInfoDeclaration : VarDeclaration
 {
-    Type tinfo;
+	Type tinfo;
 
-    this(Type tinfo, int internal)
+	this(Type tinfo, int internal)
 	{
 		super(Loc(0), Type.typeinfo.type, tinfo.getTypeInfoIdent(internal), null);
 		this.tinfo = tinfo;
@@ -42,22 +42,22 @@
 		assert(false);
 	}
 }
-    override Dsymbol syntaxCopy(Dsymbol)
+	override Dsymbol syntaxCopy(Dsymbol)
 	{
-		assert(false);
+		assert(false);		  // should never be produced by syntax
+		return null;
 	}
 
-    override void semantic(Scope sc)
+	override void semantic(Scope sc)
 	{
-		assert(false);
+		assert(linkage == LINKc);
 	}
 
-    override void emitComment(Scope sc)
+	override void emitComment(Scope sc)
 	{
-		assert(false);
 	}
 
-    override Symbol* toSymbol()
+	override Symbol* toSymbol()
 	{
 		//printf("TypeInfoDeclaration::toSymbol(%s), linkage = %d\n", toChars(), linkage);
 		return VarDeclaration.toSymbol();
@@ -67,7 +67,7 @@
 	{
 	}
 
-    override void toObjFile(int multiobj)			// compile to .obj file
+	override void toObjFile(int multiobj)			// compile to .obj file
 	{
 		Symbol* s;
 		uint sz;
@@ -113,7 +113,7 @@
 			obj_export(s,0);
 	}
 
-    void toDt(dt_t** pdt)
+	void toDt(dt_t** pdt)
 	{
 		assert(false);
 	}