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

Function createDiagnostic

test/fixtures/snapshot/typescript.js:42122–42127  ·  view source on GitHub ↗
(message, spec)

Source from the content-addressed store, hash-verified

42120 return diag === undefined;
42121 });
42122 function createDiagnostic(message, spec) {
42123 var element = ts.getTsConfigPropArrayElementValue(jsonSourceFile, specKey, spec);
42124 return element ?
42125 ts.createDiagnosticForNodeInSourceFile(jsonSourceFile, element, message, spec) :
42126 ts.createCompilerDiagnostic(message, spec);
42127 }
42128 }
42129 function specToDiagnostic(spec, disallowTrailingRecursion) {
42130 if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) {

Callers 2

getExtendsConfigPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected