Mercurial > projects > dang
diff tools/AstPrinter.d @ 163:362265427838
Fixes to types for constructor and also removed DFunction's from DStruct, DClass and DInterface
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Tue, 22 Jul 2008 16:50:47 +0200 |
parents | 57b0b4464a0b |
children | 01c2c49775ef |
line wrap: on
line diff
--- a/tools/AstPrinter.d Tue Jul 22 16:22:58 2008 +0200 +++ b/tools/AstPrinter.d Tue Jul 22 16:50:47 2008 +0200 @@ -40,9 +40,12 @@ case DeclType.FuncDecl: auto funcDecl = cast(FuncDecl)decl; printBeginLine(); - if(printAtt) printAttribute(decl.att); - printIdentifier(funcDecl.returnType); - space; + if (printAtt) printAttribute(decl.att); + if (funcDecl.identifier.get != "this") + { + printIdentifier(funcDecl.returnType); + space; + } printIdentifier(funcDecl.identifier); printFuncArgs(funcDecl); printOpenBrace();