createChild method

SymbolTable<T> createChild({
  1. Map<String, T> values = const {},
})

Creates a child scope within this one.

You may optionally provide starter values.

Implementation

SymbolTable<T> createChild({Map<String, T> values = const {}}) {
  var child = SymbolTable(values: values);
  child
    .._depth = _depth + 1
    .._parent = this
    .._root = _root;
  _children.add(child);
  return child;
}