view dmd/ThisDeclaration.d @ 190:80660782bffe

Fixed deprecated function call
author korDen@korDen-pc
date Sun, 25 Mar 2012 01:39:46 +0400
parents b0d41ff5e0df
children
line wrap: on
line source

module dmd.ThisDeclaration;

import dmd.common;
import dmd.VarDeclaration;
import dmd.Dsymbol;
import dmd.Loc;
import dmd.Type;
import dmd.Id;

import dmd.DDMDExtensions;

// For the "this" parameter to member functions

class ThisDeclaration : VarDeclaration
{
	mixin insertMemberExtension!(typeof(this));

    this(Loc loc, Type t)
	{
		register();
		super(loc, t, Id.This, null);
		noauto = true;
	}
	
    override Dsymbol syntaxCopy(Dsymbol)
	{
		assert(false);
	}
	
    override ThisDeclaration isThisDeclaration() { return this; }
}