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

Function getSyntaxDiagnostics

test/fixtures/snapshot/typescript.js:124616–124619  ·  view source on GitHub ↗
(cancellationToken)

Source from the content-addressed store, hash-verified

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");
124619 }
124620 function getSemanticDiagnostics(cancellationToken) {
124621 handleDiagnostics(ts.Debug.checkDefined(program).getSemanticDiagnostics(/*sourceFile*/ undefined, cancellationToken), BuildResultFlags.TypeErrors, "Semantic");
124622 }

Callers 1

executeStepsFunction · 0.85

Calls 1

handleDiagnosticsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…