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

Function getJsxType

test/fixtures/snapshot/typescript.js:73936–73941  ·  view source on GitHub ↗
(name, location)

Source from the content-addressed store, hash-verified

73934 return createJsxAttributesTypeFromAttributesProperty(node.parent, checkMode);
73935 }
73936 function getJsxType(name, location) {
73937 var namespace = getJsxNamespaceAt(location);
73938 var exports = namespace && getExportsOfSymbol(namespace);
73939 var typeSymbol = exports && getSymbol(exports, name, 788968 /* SymbolFlags.Type */);
73940 return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType;
73941 }
73942 /**
73943 * Looks up an intrinsic tag name and returns a symbol that either points to an intrinsic
73944 * property (in which case nodeLinks.jsxFlags will be IntrinsicNamedElement) or an intrinsic

Calls 4

getJsxNamespaceAtFunction · 0.85
getExportsOfSymbolFunction · 0.85
getSymbolFunction · 0.85
getDeclaredTypeOfSymbolFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…