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

Function getNodeForQuickInfo

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

Source from the content-addressed store, hash-verified

165319 };
165320 }
165321 function getNodeForQuickInfo(node) {
165322 if (ts.isNewExpression(node.parent) && node.pos === node.parent.pos) {
165323 return node.parent.expression;
165324 }
165325 if (ts.isNamedTupleMember(node.parent) && node.pos === node.parent.pos) {
165326 return node.parent;
165327 }
165328 if (ts.isImportMeta(node.parent) && node.parent.name === node) {
165329 return node.parent;
165330 }
165331 return node;
165332 }
165333 function shouldGetType(sourceFile, node, position) {
165334 switch (node.kind) {
165335 case 79 /* SyntaxKind.Identifier */:

Callers 1

getQuickInfoAtPositionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected