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

Function transformConstantInitializer

test/fixtures/snapshot/typescript.js:161174–161182  ·  view source on GitHub ↗
(initializer, substitutions)

Source from the content-addressed store, hash-verified

161172 }
161173 }
161174 function transformConstantInitializer(initializer, substitutions) {
161175 return substitutions.size
161176 ? visitor(initializer)
161177 : initializer;
161178 function visitor(node) {
161179 var substitution = substitutions.get(ts.getNodeId(node).toString());
161180 return substitution ? ts.getSynthesizedDeepClone(substitution) : ts.visitEachChild(node, visitor, ts.nullTransformationContext);
161181 }
161182 }
161183 function getStatementsOrClassElements(scope) {
161184 if (ts.isFunctionLikeDeclaration(scope)) {
161185 var body = scope.body; // TODO: GH#18217

Callers 1

extractConstantInScopeFunction · 0.85

Calls 1

visitorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…