Mercurial > projects > dil
changeset 661:c37d25d661af
Fixed getShortClassName().
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Wed, 16 Jan 2008 00:35:55 +0100 |
parents | 085bac570c7e |
children | 73bac90f90b2 |
files | trunk/src/cmd/Generate.d |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/src/cmd/Generate.d Tue Jan 15 23:26:49 2008 +0100 +++ b/trunk/src/cmd/Generate.d Wed Jan 16 00:35:55 2008 +0100 @@ -97,7 +97,8 @@ { alias NodeCategory NC; case NC.Declaration: - if (node.kind == NodeKind.Declarations) + if (node.kind == NodeKind.Declarations || + node.kind == NodeKind.EnumMember) break; suffixLength = "Declaration".length; break; @@ -107,6 +108,7 @@ case NodeKind.Statements, NodeKind.CatchBody, NodeKind.FinallyBody, + NodeKind.FunctionBody, NodeKind.AsmInstruction, NodeKind.IllegalAsmInstruction: break; @@ -126,6 +128,8 @@ } break; case NC.Type: + if (node.kind == NodeKind.BaseClass) + break; suffixLength = "Type".length; break; case NC.Other: