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

Function isInTypeQuery

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

Source from the content-addressed store, hash-verified

69271 return links.resolvedSymbol;
69272 }
69273 function isInTypeQuery(node) {
69274 // TypeScript 1.0 spec (April 2014): 3.6.3
69275 // A type query consists of the keyword typeof followed by an expression.
69276 // The expression is restricted to a single identifier or a sequence of identifiers separated by periods
69277 return !!ts.findAncestor(node, function (n) { return n.kind === 181 /* SyntaxKind.TypeQuery */ ? true : n.kind === 79 /* SyntaxKind.Identifier */ || n.kind === 161 /* SyntaxKind.QualifiedName */ ? false : "quit"; });
69278 }
69279 // Return the flow cache key for a "dotted name" (i.e. a sequence of identifiers
69280 // separated by dots). The key consists of the id of the symbol referenced by the
69281 // leftmost identifier followed by zero or more property names separated by dots.

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…