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

Function createDiagnosticForOptionPaths

test/fixtures/snapshot/typescript.js:119124–119137  ·  view source on GitHub ↗
(onKey, key, message, arg0)

Source from the content-addressed store, hash-verified

119122 }
119123 }
119124 function createDiagnosticForOptionPaths(onKey, key, message, arg0) {
119125 var needCompilerDiagnostic = true;
119126 var pathsSyntax = getOptionPathsSyntax();
119127 for (var _i = 0, pathsSyntax_2 = pathsSyntax; _i < pathsSyntax_2.length; _i++) {
119128 var pathProp = pathsSyntax_2[_i];
119129 if (ts.isObjectLiteralExpression(pathProp.initializer) &&
119130 createOptionDiagnosticInObjectLiteralSyntax(pathProp.initializer, onKey, key, /*key2*/ undefined, message, arg0)) {
119131 needCompilerDiagnostic = false;
119132 }
119133 }
119134 if (needCompilerDiagnostic) {
119135 programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0));
119136 }
119137 }
119138 function getOptionsSyntaxByName(name) {
119139 var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
119140 return compilerOptionsObjectLiteralSyntax && ts.getPropertyAssignment(compilerOptionsObjectLiteralSyntax, name);

Callers 1

verifyCompilerOptionsFunction · 0.85

Calls 3

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…