A file or folder name up to its first dot: 'b.dart' → 'b', 'types.d.ts' → 'types', '.eslintrc.js' → '.eslintrc'.
(name: string)
| 115 | |
| 116 | /** A file or folder name up to its first dot: 'b.dart' → 'b', 'types.d.ts' → 'types', '.eslintrc.js' → '.eslintrc'. */ |
| 117 | function fileNameStem(name: string): string { |
| 118 | const dot = name.indexOf('.', 1); |
| 119 | return dot > 0 ? name.slice(0, dot) : name; |
| 120 | } |
| 121 | |
| 122 | /** |
| 123 | * What an import of the file at `filePath` can be written as, for the failed |
no outgoing calls
no test coverage detected