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

Function getConstantValue

test/fixtures/snapshot/typescript.js:27874–27877  ·  view source on GitHub ↗

* Gets the constant value to emit for an expression representing an enum.

(node)

Source from the content-addressed store, hash-verified

27872 * Gets the constant value to emit for an expression representing an enum.
27873 */
27874 function getConstantValue(node) {
27875 var _a;
27876 return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.constantValue;
27877 }
27878 ts.getConstantValue = getConstantValue;
27879 /**
27880 * Sets the constant value to emit for an expression.

Callers 3

createTypeCheckerFunction · 0.85
serializeEnumFunction · 0.85
createResolverFunction · 0.85

Calls 2

getEnumMemberValueFunction · 0.85
getNodeLinksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…