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

Function handleDiagnostics

test/fixtures/snapshot/typescript.js:124607–124615  ·  view source on GitHub ↗
(diagnostics, errorFlags, errorType)

Source from the content-addressed store, hash-verified

124605 step++;
124606 }
124607 function handleDiagnostics(diagnostics, errorFlags, errorType) {
124608 var _a;
124609 if (diagnostics.length) {
124610 (_a = buildErrors(state, projectPath, program, config, diagnostics, errorFlags, errorType), buildResult = _a.buildResult, step = _a.step);
124611 }
124612 else {
124613 step++;
124614 }
124615 }
124616 function getSyntaxDiagnostics(cancellationToken) {
124617 ts.Debug.assertIsDefined(program);
124618 handleDiagnostics(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], program.getConfigFileParsingDiagnostics(), true), program.getOptionsDiagnostics(cancellationToken), true), program.getGlobalDiagnostics(cancellationToken), true), program.getSyntacticDiagnostics(/*sourceFile*/ undefined, cancellationToken), true), BuildResultFlags.SyntaxErrors, "Syntactic");

Callers 2

getSyntaxDiagnosticsFunction · 0.85
getSemanticDiagnosticsFunction · 0.85

Calls 1

buildErrorsFunction · 0.85

Tested by

no test coverage detected