view dmd/TemplateThisParameter.d @ 157:b7b61140701d

* added all missing default cases in switch statements + Lexer.getDocComment + Lexer.combineComments
author trass3r
date Thu, 16 Sep 2010 01:34:10 +0200
parents e28b18c23469
children 438eaa11eed4
line wrap: on
line source

module dmd.TemplateThisParameter;

import dmd.common;
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);
	}
}