Mercurial > projects > dil
comparison trunk/src/dil/ast/Visitor.d @ 667:1ac758cd952a
Fixed a few things in DefaultVisitor.d and Pass1.d
Returning parameter node in visit() methods in module Visitor.
Added member type to TypeNode class.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 17 Jan 2008 00:21:16 +0100 |
parents | 0acc43b86bf2 |
children | ca7607226caa |
comparison
equal
deleted
inserted
replaced
666:8d96a7b50982 | 667:1ac758cd952a |
---|---|
19 +/ | 19 +/ |
20 char[] generateVisitMethods() | 20 char[] generateVisitMethods() |
21 { | 21 { |
22 char[] text; | 22 char[] text; |
23 foreach (className; classNames) | 23 foreach (className; classNames) |
24 text ~= "returnType!(\""~className~"\") visit("~className~"){return null;}\n"; | 24 text ~= "returnType!(\""~className~"\") visit("~className~" node){return node;}\n"; |
25 return text; | 25 return text; |
26 } | 26 } |
27 // pragma(msg, generateAbstractVisitMethods()); | 27 // pragma(msg, generateAbstractVisitMethods()); |
28 | 28 |
29 /// Gets the appropriate return type for the provided class. | 29 /// Gets the appropriate return type for the provided class. |