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

Function getCompilerOptionsObjectLiteralSyntax

test/fixtures/snapshot/typescript.js:119176–119191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119174 }
119175 }
119176 function getCompilerOptionsObjectLiteralSyntax() {
119177 if (_compilerOptionsObjectLiteralSyntax === undefined) {
119178 _compilerOptionsObjectLiteralSyntax = false;
119179 var jsonObjectLiteral = ts.getTsConfigObjectLiteralExpression(options.configFile);
119180 if (jsonObjectLiteral) {
119181 for (var _i = 0, _a = ts.getPropertyAssignment(jsonObjectLiteral, "compilerOptions"); _i < _a.length; _i++) {
119182 var prop = _a[_i];
119183 if (ts.isObjectLiteralExpression(prop.initializer)) {
119184 _compilerOptionsObjectLiteralSyntax = prop.initializer;
119185 break;
119186 }
119187 }
119188 }
119189 }
119190 return _compilerOptionsObjectLiteralSyntax || undefined;
119191 }
119192 function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2) {
119193 var props = ts.getPropertyAssignment(objectLiteral, key1, key2);
119194 for (var _i = 0, props_3 = props; _i < props_3.length; _i++) {

Callers 3

getOptionsSyntaxByNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected