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

Function createDiagnosticForOptionPathKeyValue

test/fixtures/snapshot/typescript.js:119104–119123  ·  view source on GitHub ↗
(key, valueIndex, message, arg0, arg1, arg2)

Source from the content-addressed store, hash-verified

119102 });
119103 }
119104 function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, arg0, arg1, arg2) {
119105 var needCompilerDiagnostic = true;
119106 var pathsSyntax = getOptionPathsSyntax();
119107 for (var _i = 0, pathsSyntax_1 = pathsSyntax; _i < pathsSyntax_1.length; _i++) {
119108 var pathProp = pathsSyntax_1[_i];
119109 if (ts.isObjectLiteralExpression(pathProp.initializer)) {
119110 for (var _a = 0, _b = ts.getPropertyAssignment(pathProp.initializer, key); _a < _b.length; _a++) {
119111 var keyProps = _b[_a];
119112 var initializer = keyProps.initializer;
119113 if (ts.isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {
119114 programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, arg0, arg1, arg2));
119115 needCompilerDiagnostic = false;
119116 }
119117 }
119118 }
119119 }
119120 if (needCompilerDiagnostic) {
119121 programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0, arg1, arg2));
119122 }
119123 }
119124 function createDiagnosticForOptionPaths(onKey, key, message, arg0) {
119125 var needCompilerDiagnostic = true;
119126 var pathsSyntax = getOptionPathsSyntax();

Callers 1

verifyCompilerOptionsFunction · 0.85

Calls 2

getOptionPathsSyntaxFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…