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

Function isPreservedDeclarationStatement

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

Source from the content-addressed store, hash-verified

109389 return false;
109390 }
109391 function isPreservedDeclarationStatement(node) {
109392 switch (node.kind) {
109393 case 256 /* SyntaxKind.FunctionDeclaration */:
109394 case 261 /* SyntaxKind.ModuleDeclaration */:
109395 case 265 /* SyntaxKind.ImportEqualsDeclaration */:
109396 case 258 /* SyntaxKind.InterfaceDeclaration */:
109397 case 257 /* SyntaxKind.ClassDeclaration */:
109398 case 259 /* SyntaxKind.TypeAliasDeclaration */:
109399 case 260 /* SyntaxKind.EnumDeclaration */:
109400 case 237 /* SyntaxKind.VariableStatement */:
109401 case 266 /* SyntaxKind.ImportDeclaration */:
109402 case 272 /* SyntaxKind.ExportDeclaration */:
109403 case 271 /* SyntaxKind.ExportAssignment */:
109404 return true;
109405 }
109406 return false;
109407 }
109408 function isProcessedComponent(node) {
109409 switch (node.kind) {
109410 case 175 /* SyntaxKind.ConstructSignature */:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected