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

Function getTypeDeclaration

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

Source from the content-addressed store, hash-verified

60621 }
60622 function getTypeOfGlobalSymbol(symbol, arity) {
60623 function getTypeDeclaration(symbol) {
60624 var declarations = symbol.declarations;
60625 if (declarations) {
60626 for (var _i = 0, declarations_3 = declarations; _i < declarations_3.length; _i++) {
60627 var declaration = declarations_3[_i];
60628 switch (declaration.kind) {
60629 case 257 /* SyntaxKind.ClassDeclaration */:
60630 case 258 /* SyntaxKind.InterfaceDeclaration */:
60631 case 260 /* SyntaxKind.EnumDeclaration */:
60632 return declaration;
60633 }
60634 }
60635 }
60636 }
60637 if (!symbol) {
60638 return arity ? emptyGenericType : emptyObjectType;
60639 }

Callers 1

getTypeOfGlobalSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected