view dmd/TemplateThisParameter.d @ 85:8e69d041a99d

Previous commit didn't compile. Fixed.
author Eldar Insafutdinov <e.insafutdinov@gmail.com>
date Mon, 30 Aug 2010 16:16:30 +0100
parents 2e2a5c3f943a
children e28b18c23469
line wrap: on
line source

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);
	}

    override TemplateThisParameter isTemplateThisParameter()
	{	
		assert(false);
	}
	
    override TemplateParameter syntaxCopy()
	{
		assert(false);
	}
	
    override void toCBuffer(OutBuffer buf, HdrGenState* hgs)
	{
		assert(false);
	}
}