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

Function shouldPrintWithInitializer

test/fixtures/snapshot/typescript.js:108453–108455  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

108451 return newParam;
108452 }
108453 function shouldPrintWithInitializer(node) {
108454 return canHaveLiteralInitializer(node) && resolver.isLiteralConstDeclaration(ts.getParseTreeNode(node)); // TODO: Make safe
108455 }
108456 function ensureNoInitializer(node) {
108457 if (shouldPrintWithInitializer(node)) {
108458 return resolver.createLiteralConstValue(ts.getParseTreeNode(node), symbolTracker); // TODO: Make safe

Callers 3

visitBindingElementFunction · 0.85
ensureNoInitializerFunction · 0.85
ensureTypeFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…