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

Function isTypeReferenceIdentifier

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

Source from the content-addressed store, hash-verified

86182 }
86183 // True if the given identifier is part of a type reference
86184 function isTypeReferenceIdentifier(node) {
86185 while (node.parent.kind === 161 /* SyntaxKind.QualifiedName */) {
86186 node = node.parent;
86187 }
86188 return node.parent.kind === 178 /* SyntaxKind.TypeReference */;
86189 }
86190 function isHeritageClauseElementIdentifier(node) {
86191 while (node.parent.kind === 206 /* SyntaxKind.PropertyAccessExpression */) {
86192 node = node.parent;

Calls

no outgoing calls

Tested by

no test coverage detected