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

Function createDiagnosticForReference

test/fixtures/snapshot/typescript.js:119159–119167  ·  view source on GitHub ↗
(sourceFile, index, message, arg0, arg1)

Source from the content-addressed store, hash-verified

119157 createDiagnosticForOption(/*onKey*/ false, option1, /*option2*/ undefined, message, arg0, arg1);
119158 }
119159 function createDiagnosticForReference(sourceFile, index, message, arg0, arg1) {
119160 var referencesSyntax = ts.firstDefined(ts.getTsConfigPropArray(sourceFile || options.configFile, "references"), function (property) { return ts.isArrayLiteralExpression(property.initializer) ? property.initializer : undefined; });
119161 if (referencesSyntax && referencesSyntax.elements.length > index) {
119162 programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1));
119163 }
119164 else {
119165 programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0, arg1));
119166 }
119167 }
119168 function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2) {
119169 var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
119170 var needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax ||

Callers 1

verifyProjectReferencesFunction · 0.85

Calls 1

addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…