MCPcopy Index your code
hub / github.com/nodejs/node / getSemanticDiagnosticsOfFile

Function getSemanticDiagnosticsOfFile

test/fixtures/snapshot/typescript.js:120531–120533  ·  view source on GitHub ↗

* Gets semantic diagnostics for the file which are * bindAndCheckDiagnostics (from cache) and program diagnostics

(state, sourceFile, cancellationToken)

Source from the content-addressed store, hash-verified

120529 * bindAndCheckDiagnostics (from cache) and program diagnostics
120530 */
120531 function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken) {
120532 return ts.concatenate(getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken), ts.Debug.checkDefined(state.program).getProgramDiagnostics(sourceFile));
120533 }
120534 /**
120535 * Gets the binder and checker diagnostics either from cache if present, or otherwise from program and caches it
120536 * Note that it is assumed that when asked about binder and checker diagnostics, the file has been taken out of affected files/changed file set

Tested by

no test coverage detected