MCPcopy Create free account
hub / github.com/nodejs/node / getTsConfigObjectLiteralExpression

Function getTsConfigObjectLiteralExpression

test/fixtures/snapshot/typescript.js:15824–15829  ·  view source on GitHub ↗
(tsConfigSourceFile)

Source from the content-addressed store, hash-verified

15822 }
15823 ts.getPropertyArrayElementValue = getPropertyArrayElementValue;
15824 function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {
15825 if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {
15826 var expression = tsConfigSourceFile.statements[0].expression;
15827 return ts.tryCast(expression, ts.isObjectLiteralExpression);
15828 }
15829 }
15830 ts.getTsConfigObjectLiteralExpression = getTsConfigObjectLiteralExpression;
15831 function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) {
15832 return ts.firstDefined(getTsConfigPropArray(tsConfigSourceFile, propKey), function (property) {

Callers 1

getTsConfigPropArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected