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

Function shouldSkipAlias

test/fixtures/snapshot/typescript.js:139954–139965  ·  view source on GitHub ↗
(node, declaration)

Source from the content-addressed store, hash-verified

139952 // (2) when the aliased symbol is originating from an import.
139953 //
139954 function shouldSkipAlias(node, declaration) {
139955 if (node.kind !== 79 /* SyntaxKind.Identifier */) {
139956 return false;
139957 }
139958 if (node.parent === declaration) {
139959 return true;
139960 }
139961 if (declaration.kind === 268 /* SyntaxKind.NamespaceImport */) {
139962 return false;
139963 }
139964 return true;
139965 }
139966 /**
139967 * ```ts
139968 * function f() {}

Callers 1

getSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…