genTree method

void genTree (
  1. Contexts env,
  2. Output output,
  3. [String prefix = '']
)
inherited

Writes in output the tree, for debug

Implementation

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

  final 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;
}