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

Function hasNavigationBarName

test/fixtures/snapshot/typescript.js:140881–140887  ·  view source on GitHub ↗

* Historically, we've elided dynamic names from the nav tree (including late bound names), * but included certain "well known" symbol names. While we no longer distinguish those well-known * symbols from other unique symbols, we do the below to retain those members in the nav tree.

(node)

Source from the content-addressed store, hash-verified

140879 * symbols from other unique symbols, we do the below to retain those members in the nav tree.
140880 */
140881 function hasNavigationBarName(node) {
140882 return !ts.hasDynamicName(node) ||
140883 (node.kind !== 221 /* SyntaxKind.BinaryExpression */ &&
140884 ts.isPropertyAccessExpression(node.name.expression) &&
140885 ts.isIdentifier(node.name.expression.expression) &&
140886 ts.idText(node.name.expression.expression) === "Symbol");
140887 }
140888 /** Look for navigation bar items in node's subtree, adding them to the current `parent`. */
140889 function addChildrenRecursively(node) {
140890 var _a;

Callers 1

addChildrenRecursivelyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected