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

Function getTypeFromTypeQueryNode

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

Source from the content-addressed store, hash-verified

60608 return ts.map(node.typeArguments, getTypeFromTypeNode);
60609 }
60610 function getTypeFromTypeQueryNode(node) {
60611 var links = getNodeLinks(node);
60612 if (!links.resolvedType) {
60613 // TypeScript 1.0 spec (April 2014): 3.6.3
60614 // The expression is processed as an identifier expression (section 4.3)
60615 // or property access expression(section 4.10),
60616 // the widened type(section 3.9) of which becomes the result.
60617 var type = checkExpressionWithTypeArguments(node);
60618 links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(type));
60619 }
60620 return links.resolvedType;
60621 }
60622 function getTypeOfGlobalSymbol(symbol, arity) {
60623 function getTypeDeclaration(symbol) {
60624 var declarations = symbol.declarations;

Callers 2

checkTypeQueryFunction · 0.85

Calls 4

getNodeLinksFunction · 0.85
getWidenedTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…