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

Function grammarErrorAtPos

test/fixtures/snapshot/typescript.js:88906–88913  ·  view source on GitHub ↗
(nodeForSourceFile, start, length, message, arg0, arg1, arg2)

Source from the content-addressed store, hash-verified

88904 return false;
88905 }
88906 function grammarErrorAtPos(nodeForSourceFile, start, length, message, arg0, arg1, arg2) {
88907 var sourceFile = ts.getSourceFileOfNode(nodeForSourceFile);
88908 if (!hasParseDiagnostics(sourceFile)) {
88909 diagnostics.add(ts.createFileDiagnostic(sourceFile, start, length, message, arg0, arg1, arg2));
88910 return true;
88911 }
88912 return false;
88913 }
88914 function grammarErrorOnNodeSkippedOn(key, node, message, arg0, arg1, arg2) {
88915 var sourceFile = ts.getSourceFileOfNode(node);
88916 if (!hasParseDiagnostics(sourceFile)) {

Calls 2

hasParseDiagnosticsFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…