MCPcopy Create free account
hub / github.com/nodejs/node / hasParseDiagnostics

Function hasParseDiagnostics

test/fixtures/snapshot/typescript.js:88894–88896  ·  view source on GitHub ↗
(sourceFile)

Source from the content-addressed store, hash-verified

88892 }
88893 }
88894 function hasParseDiagnostics(sourceFile) {
88895 return sourceFile.parseDiagnostics.length > 0;
88896 }
88897 function grammarErrorOnFirstToken(node, message, arg0, arg1, arg2) {
88898 var sourceFile = ts.getSourceFileOfNode(node);
88899 if (!hasParseDiagnostics(sourceFile)) {

Callers 8

checkWithStatementFunction · 0.85
grammarErrorOnFirstTokenFunction · 0.85
grammarErrorAtPosFunction · 0.85
grammarErrorOnNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected