(
fileName: string,
cb: (ls: ts.LanguageService | LanguageService) => Result | undefined,
)
| 36 | const ngLS = new LanguageService(project, tsLS, config); |
| 37 | |
| 38 | function withFallback<Result>( |
| 39 | fileName: string, |
| 40 | cb: (ls: ts.LanguageService | LanguageService) => Result | undefined, |
| 41 | ): Result | undefined { |
| 42 | if (angularOnly || !isTypeScriptFile(fileName)) { |
| 43 | return cb(ngLS); |
| 44 | } |
| 45 | return cb(tsLS) ?? cb(ngLS); |
| 46 | } |
| 47 | |
| 48 | function getSyntacticDiagnostics(fileName: string): ts.DiagnosticWithLocation[] { |
| 49 | if (!angularOnly && isTypeScriptFile(fileName)) { |
no test coverage detected
searching dependent graphs…