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

Function canHaveLiteralInitializer

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

Source from the content-addressed store, hash-verified

109378 }
109379 }
109380 function canHaveLiteralInitializer(node) {
109381 switch (node.kind) {
109382 case 167 /* SyntaxKind.PropertyDeclaration */:
109383 case 166 /* SyntaxKind.PropertySignature */:
109384 return !ts.hasEffectiveModifier(node, 8 /* ModifierFlags.Private */);
109385 case 164 /* SyntaxKind.Parameter */:
109386 case 254 /* SyntaxKind.VariableDeclaration */:
109387 return true;
109388 }
109389 return false;
109390 }
109391 function isPreservedDeclarationStatement(node) {
109392 switch (node.kind) {
109393 case 256 /* SyntaxKind.FunctionDeclaration */:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected