Mercurial > projects > dil
comparison trunk/src/dil/ast/DefaultVisitor.d @ 797:cf2ad5df025c
Added documentation comments.
Removed Lexer.loadKeywords() and revised Lexer.isReservedIdentifier().
Also removed Lexer.getTokens().
Renamed keywords to g_reservedIds.
Renamed classNames to g_classNames.
Added PRE and DMDBUG macros.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Fri, 29 Feb 2008 22:51:24 +0100 |
parents | 5fe89bb8cbdd |
children | 9e6c6bb73e5f |
comparison
equal
deleted
inserted
replaced
796:f7688996bf08 | 797:cf2ad5df025c |
---|---|
356 /// { return _ClassDeclaration.visitDefault(node); } | 356 /// { return _ClassDeclaration.visitDefault(node); } |
357 /// --- | 357 /// --- |
358 char[] generateDefaultVisitMethods() | 358 char[] generateDefaultVisitMethods() |
359 { | 359 { |
360 char[] text; | 360 char[] text; |
361 foreach (className; classNames) | 361 foreach (className; g_classNames) |
362 text ~= "private mixin .visitDefault!("~className~") _"~className~";\n" | 362 text ~= "private mixin .visitDefault!("~className~") _"~className~";\n" |
363 "override returnType!(\""~className~"\") visit("~className~" node)" | 363 "override returnType!(\""~className~"\") visit("~className~" node)" |
364 "{return _"~className~".visitDefault(node);}\n"; | 364 "{return _"~className~".visitDefault(node);}\n"; |
365 return text; | 365 return text; |
366 } | 366 } |