Mercurial > projects > ddmd
view dmd/TypeInfoFunctionDeclaration.d @ 161:584dc990e12f
type fixed
author | korDen |
---|---|
date | Mon, 20 Sep 2010 01:19:36 +0400 |
parents | 010eb8f0e18d |
children | af724d3510d7 |
line wrap: on
line source
module dmd.TypeInfoFunctionDeclaration; import dmd.common; import dmd.Type; import dmd.TypeInfoDeclaration; import dmd.TypeFunction; import dmd.TY; import dmd.backend.dt_t; import dmd.backend.Util; import dmd.backend.TYM; class TypeInfoFunctionDeclaration : TypeInfoDeclaration { this(Type tinfo) { super(tinfo, 0); type = Type.typeinfofunction.type; } override void toDt(dt_t** pdt) { //printf("TypeInfoFunctionDeclaration.toDt()\n"); dtxoff(pdt, Type.typeinfofunction.toVtblSymbol(), 0, TYnptr); // vtbl for TypeInfo_Function dtdword(pdt, 0); // monitor assert(tinfo.ty == Tfunction); TypeFunction tc = cast(TypeFunction)tinfo; tc.next.getTypeInfo(null); dtxoff(pdt, tc.next.vtinfo.toSymbol(), 0, TYnptr); // TypeInfo for function return value } }