pathMatches<T extends DartElement> static method

Filter<T> pathMatches<T extends DartElement>(
  1. String regExp
)

Implementation

static Filter<T> pathMatches<T extends DartElement>(String regExp) {
  return Filter(
    (el) => RegExp(regExp).hasMatch(el.library),
    description: 'have path matching "$regExp"',
  );
}