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

Function getSpecialSearchKind

test/fixtures/snapshot/typescript.js:137666–137680  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

137664 }
137665 }
137666 function getSpecialSearchKind(node) {
137667 switch (node.kind) {
137668 case 171 /* SyntaxKind.Constructor */:
137669 case 134 /* SyntaxKind.ConstructorKeyword */:
137670 return 1 /* SpecialSearchKind.Constructor */;
137671 case 79 /* SyntaxKind.Identifier */:
137672 if (ts.isClassLike(node.parent)) {
137673 ts.Debug.assert(node.parent.name === node);
137674 return 2 /* SpecialSearchKind.Class */;
137675 }
137676 // falls through
137677 default:
137678 return 0 /* SpecialSearchKind.None */;
137679 }
137680 }
137681 /** Handle a few special cases relating to export/import specifiers. */
137682 function skipPastExportOrImportSpecifierOrUnion(symbol, node, checker, useLocalSymbolForExportSpecifier) {
137683 var parent = node.parent;

Callers 1

Calls 1

assertMethod · 0.80

Tested by

no test coverage detected