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

Function isValidTypeAccess_1

test/fixtures/snapshot/typescript.js:133660–133660  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

133658 ts.Debug.assertEachIsDefined(exportedSymbols, "getExportsOfModule() should all be defined");
133659 var isValidValueAccess_1 = function (symbol) { return typeChecker.isValidPropertyAccess(isImportType ? node : node.parent, symbol.name); };
133660 var isValidTypeAccess_1 = function (symbol) { return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker); };
133661 var isValidAccess = isNamespaceName
133662 // At `namespace N.M/**/`, if this is the only declaration of `M`, don't include `M` as a completion.
133663 ? function (symbol) { var _a; return !!(symbol.flags & 1920 /* SymbolFlags.Namespace */) && !((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.every(function (d) { return d.parent === node.parent; })); }

Callers 1

Tested by

no test coverage detected