* A reusable `(path) => boolean` over a bounded candidate list, unioning the * indexed flag with the path convention. This is the shape every ranking * comparator wants: one query up front, then O(1) per comparison.
(filePaths: Iterable<string>)
| 2035 | * comparator wants: one query up front, then O(1) per comparison. |
| 2036 | */ |
| 2037 | generatedPredicateFor(filePaths: Iterable<string>): (filePath: string) => boolean { |
| 2038 | const flagged = this.getGeneratedPathsAmong(filePaths); |
| 2039 | return (filePath: string) => flagged.has(filePath) || isGeneratedFile(filePath); |
| 2040 | } |
| 2041 | |
| 2042 | /** |
| 2043 | * Which of `filePaths` are AMBIENT DECLARATION files — they declare nothing |
no test coverage detected