genTree method

void genTree (Contexts env, Output output, [ String prefix = '' ])

Writes in output the tree, for debug

Implementation

void genTree(Contexts env, Output output, [String prefix = '']) {
    genTreeTitle(env, output, prefix, type, toString());

    final int tabs = prefix.isEmpty ? 1 : 2;
    env.tabLevel = env.tabLevel + tabs ;

    if (treeField == null) {
      output.add('***** FIELDS NOT DEFINED in $type *****');
    } else {
      treeField.forEach((String fieldName, dynamic fieldValue) {
        genTreeField(env, output, fieldName, fieldValue);
      });
    }

    env.tabLevel = env.tabLevel - tabs;
}