generatorCode function

String generatorCode(
  1. TreeNode treenode,
  2. CodeGeneratorFactory factory
)

Implementation

String generatorCode(TreeNode treenode, CodeGeneratorFactory factory) {
  var generator = factory.getCodeGenerator(treenode.NodeName);
  return generator.generateCode(treenode, factory);
}