TargetTree constructor

TargetTree(
  1. Type type,
  2. List<Match> matches
)

Implementation

TargetTree(this.type, List<Match> matches) {
  root = TargetNode(accessor: RootAccessor(type), parent: null, match: null);

  for ( var match in matches) {
    root.insertMatch(this, match, 0);
  }
}