generateCode method

  1. @override
String generateCode(
  1. TreeNode node,
  2. CodeGeneratorFactory factory
)
override

Implementation

@override
String generateCode(TreeNode node, CodeGeneratorFactory factory) {
  var childnodes = node.getValue('children');
  var childcodes = [];
  for(TreeNode treenode in childnodes) {
    var generator = factory.getCodeGenerator(treenode.NodeName);
    String childcode = generator.generateCode(treenode, factory);
    childcodes.add(childcode);
  }
  return 'Row(${childcodes.join(', ')})';
}