findAllPathsTo method

Iterable<ParserPath> findAllPathsTo(
  1. Parser source,
  2. Parser target
)

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