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

Function asExpression

test/fixtures/snapshot/typescript.js:27205–27210  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

27203 name;
27204 }
27205 function asExpression(value) {
27206 return typeof value === "string" ? createStringLiteral(value) :
27207 typeof value === "number" ? createNumericLiteral(value) :
27208 typeof value === "boolean" ? value ? createTrue() : createFalse() :
27209 value;
27210 }
27211 function asToken(value) {
27212 return typeof value === "number" ? createToken(value) : value;
27213 }

Callers 5

createElementAccessChainFunction · 0.85
createArraySliceCallFunction · 0.85
createPropertyDescriptorFunction · 0.85

Calls 4

createStringLiteralFunction · 0.85
createNumericLiteralFunction · 0.85
createTrueFunction · 0.85
createFalseFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…