[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8775]
This commit is contained in:
parrt 2011-06-27 16:06:46 -08:00
parent 05d7670985
commit 7e45a0c01d
2 changed files with 1 additions and 6 deletions

View File

@ -91,7 +91,7 @@ public class CodeGenerator {
controller.addExtension( new ParserASTExtension(factory) );
}
OutputModelObject outputModel = controller.buildOutputModel();
OutputModelObject outputModel = controller.buildOutputModel(controller);
// CREATE TEMPLATES BY WALKING MODEL
OutputModelWalker walker = new OutputModelWalker(g.tool, templates);

View File

@ -22,12 +22,7 @@ public class OutputModelController implements OutputModelFactory {
public void addExtension(CodeGeneratorExtension ext) { extensions.add(ext); }
/** Dummy to satisfy interface; controller never calls this. */
public OutputModelObject buildOutputModel(OutputModelController controller) {
return buildOutputModel();
}
public OutputModelObject buildOutputModel() {
OutputModelObject root = delegate.buildOutputModel(this);
for (CodeGeneratorExtension ext : extensions) root = ext.buildOutputModel(root);
return root;