ParseTreeMatch constructor

ParseTreeMatch(
  1. ParseTree tree,
  2. ParseTreePattern pattern,
  3. MultiMap<String, ParseTree> labels,
  4. ParseTree? mismatchedNode,
)

Constructs a new instance of ParseTreeMatch from the specified parse tree and pattern.

@param tree The parse tree to match against the pattern. @param pattern The parse tree pattern. @param labels A mapping from label names to collections of ParseTree objects located by the tree pattern matching process. @param mismatchedNode The first node which failed to match the tree pattern during the matching process.

Implementation

ParseTreeMatch(this.tree, this.pattern, this.labels, this.mismatchedNode);