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

Function parseJsonText

test/fixtures/snapshot/typescript.js:31334–31336  ·  view source on GitHub ↗

* Parse json text into SyntaxTree and return node and parse errors if any * @param fileName * @param sourceText

(fileName, sourceText)

Source from the content-addressed store, hash-verified

31332 * @param sourceText
31333 */
31334 function parseJsonText(fileName, sourceText) {
31335 return Parser.parseJsonText(fileName, sourceText);
31336 }
31337 ts.parseJsonText = parseJsonText;
31338 // See also `isExternalOrCommonJsModule` in utilities.ts
31339 function isExternalModule(file) {

Callers 1

parseSourceFileFunction · 0.85

Calls 15

initializeStateFunction · 0.85
nextTokenFunction · 0.85
getNodePosFunction · 0.85
createNodeArrayFunction · 0.85
parseTokenNodeFunction · 0.85
lookAheadFunction · 0.85
parseLiteralNodeFunction · 0.85
parseErrorAtCurrentTokenFunction · 0.85
finishNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…