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

Function isPropertyOrMethodDeclarationSymbol

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

Source from the content-addressed store, hash-verified

51987 return qualify;
51988 }
51989 function isPropertyOrMethodDeclarationSymbol(symbol) {
51990 if (symbol.declarations && symbol.declarations.length) {
51991 for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {
51992 var declaration = _a[_i];
51993 switch (declaration.kind) {
51994 case 167 /* SyntaxKind.PropertyDeclaration */:
51995 case 169 /* SyntaxKind.MethodDeclaration */:
51996 case 172 /* SyntaxKind.GetAccessor */:
51997 case 173 /* SyntaxKind.SetAccessor */:
51998 continue;
51999 default:
52000 return false;
52001 }
52002 }
52003 return true;
52004 }
52005 return false;
52006 }
52007 function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) {
52008 var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 788968 /* SymbolFlags.Type */, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ true);
52009 return access.accessibility === 0 /* SymbolAccessibility.Accessible */;

Callers 1

getAccessibleSymbolChainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected