(onKey, key, message, arg0)
| 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); |
no test coverage detected
searching dependent graphs…