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

Function getContextualTypeForJsxExpression

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

Source from the content-addressed store, hash-verified

72854 }, /*noReductions*/ true));
72855 }
72856 function getContextualTypeForJsxExpression(node) {
72857 var exprParent = node.parent;
72858 return ts.isJsxAttributeLike(exprParent)
72859 ? getContextualType(node)
72860 : ts.isJsxElement(exprParent)
72861 ? getContextualTypeForChildJsxExpression(exprParent, node)
72862 : undefined;
72863 }
72864 function getContextualTypeForJsxAttribute(attribute) {
72865 // When we trying to resolve JsxOpeningLikeElement as a stateless function element, we will already give its attributes a contextual type
72866 // which is a type of the parameter of the signature we are trying out.

Callers 1

getContextualTypeFunction · 0.85

Calls 2

getContextualTypeFunction · 0.85

Tested by

no test coverage detected