forked from jasder/antlr
tweak
[git-p4: depot-paths = "//depot/code/antlr4/main/": change = 8775]
This commit is contained in:
parent
05d7670985
commit
7e45a0c01d
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue