findNode method

SourceNode? findNode(
  1. Match match
)

Implementation

SourceNode? findNode(Match match) {
  for (var node in roots) {
    if (node.match == match) {
      return node;
    }
    else if (node.accessor == match.paths[0][0])
      return node.findMatchingNode(match, 1);
  }

  return null; // make the compiler happy
}