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

Function convertToObject

test/fixtures/snapshot/typescript.js:40957–40960  ·  view source on GitHub ↗

* Convert the json syntax tree into the json value

(sourceFile, errors)

Source from the content-addressed store, hash-verified

40955 * Convert the json syntax tree into the json value
40956 */
40957 function convertToObject(sourceFile, errors) {
40958 var _a;
40959 return convertToObjectWorker(sourceFile, (_a = sourceFile.statements[0]) === null || _a === void 0 ? void 0 : _a.expression, errors, /*returnValue*/ true, /*knownRootOptions*/ undefined, /*jsonConversionNotifier*/ undefined);
40960 }
40961 ts.convertToObject = convertToObject;
40962 /**
40963 * Convert the json syntax tree into the json value and report errors

Callers 1

parseConfigFunction · 0.85

Calls 1

convertToObjectWorkerFunction · 0.85

Tested by

no test coverage detected