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

Function getOptionsSyntaxByValue

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

Source from the content-addressed store, hash-verified

119143 return getOptionsSyntaxByName("paths") || ts.emptyArray;
119144 }
119145 function getOptionsSyntaxByValue(name, value) {
119146 var syntaxByName = getOptionsSyntaxByName(name);
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);

Callers 1

Calls 1

getOptionsSyntaxByNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…