view dmd/ThisDeclaration.d @ 72:2e2a5c3f943a

reduced warnings by adding override to the methods think this also normalizes different line endings used all over the place
author Trass3r
date Sat, 28 Aug 2010 16:19:48 +0200
parents 10317f0c89a5
children e28b18c23469
line wrap: on
line source

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;
	}
	
    override Dsymbol syntaxCopy(Dsymbol)
	{
		assert(false);
	}
	
    override ThisDeclaration isThisDeclaration() { return this; }
}