patternMatches
patternMatches(config: List<ConfigLine>, pattern: Pattern<T>) : Bag<{line: ConfigLine, data: T}>
See the data extraction guide.
Deprecated Bag overload
As a transitionary measure for backwards compatibility, patternMatches also accepts a Bag<ConfigLine> as its first
argument. Use orderBy() or order() to create an argument with type List<ConfigLine>. Eventually, the Bag overload
will be removed and a type-checking error will be emitted instead.