findAllPathsTo method
Returns all paths starting at source
that end in target
.
Implementation
Iterable<ParserPath> findAllPathsTo(Parser source, Parser target) {
assert(parsers.contains(target), 'target is not part of the analyzer');
return findAllPaths(source, (path) => path.target == target);
}