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

Function isDeclarationAndNotVisible

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

Source from the content-addressed store, hash-verified

108508 }
108509 }
108510 function isDeclarationAndNotVisible(node) {
108511 node = ts.getParseTreeNode(node);
108512 switch (node.kind) {
108513 case 256 /* SyntaxKind.FunctionDeclaration */:
108514 case 261 /* SyntaxKind.ModuleDeclaration */:
108515 case 258 /* SyntaxKind.InterfaceDeclaration */:
108516 case 257 /* SyntaxKind.ClassDeclaration */:
108517 case 259 /* SyntaxKind.TypeAliasDeclaration */:
108518 case 260 /* SyntaxKind.EnumDeclaration */:
108519 return !resolver.isDeclarationVisible(node);
108520 // The following should be doing their own visibility checks based on filtering their members
108521 case 254 /* SyntaxKind.VariableDeclaration */:
108522 return !getBindingNameVisible(node);
108523 case 265 /* SyntaxKind.ImportEqualsDeclaration */:
108524 case 266 /* SyntaxKind.ImportDeclaration */:
108525 case 272 /* SyntaxKind.ExportDeclaration */:
108526 case 271 /* SyntaxKind.ExportAssignment */:
108527 return false;
108528 case 170 /* SyntaxKind.ClassStaticBlockDeclaration */:
108529 return true;
108530 }
108531 return false;
108532 }
108533 // If the ExpandoFunctionDeclaration have multiple overloads, then we only need to emit properties for the last one.
108534 function shouldEmitFunctionProperties(input) {
108535 var _a;

Callers 2

visitDeclarationSubtreeFunction · 0.85

Calls 1

getBindingNameVisibleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…