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

Function getOptionsSyntaxByArrayElementValue

test/fixtures/snapshot/typescript.js:119149–119152  ·  view source on GitHub ↗
(name, value)

Source from the content-addressed store, hash-verified

119147 return syntaxByName && ts.firstDefined(syntaxByName, function (property) { return ts.isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : undefined; });
119148 }
119149 function getOptionsSyntaxByArrayElementValue(name, value) {
119150 var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();
119151 return compilerOptionsObjectLiteralSyntax && ts.getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);
119152 }
119153 function createDiagnosticForOptionName(message, option1, option2, option3) {
119154 createDiagnosticForOption(/*onKey*/ true, option1, option2, message, option1, option2, option3);
119155 }

Callers 1

Tested by

no test coverage detected