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