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

Function getThisArgumentType

test/fixtures/snapshot/typescript.js:75461–75469  ·  view source on GitHub ↗
(thisArgumentNode)

Source from the content-addressed store, hash-verified

75459 return getInferredTypes(context);
75460 }
75461 function getThisArgumentType(thisArgumentNode) {
75462 if (!thisArgumentNode) {
75463 return voidType;
75464 }
75465 var thisArgumentType = checkExpression(thisArgumentNode);
75466 return ts.isOptionalChainRoot(thisArgumentNode.parent) ? getNonNullableType(thisArgumentType) :
75467 ts.isOptionalChain(thisArgumentNode.parent) ? removeOptionalTypeMarker(thisArgumentType) :
75468 thisArgumentType;
75469 }
75470 function inferTypeArguments(node, signature, args, checkMode, context) {
75471 if (ts.isJsxOpeningLikeElement(node)) {
75472 return inferJsxTypeArguments(node, signature, checkMode, context);

Callers 2

inferTypeArgumentsFunction · 0.85

Calls 3

getNonNullableTypeFunction · 0.85
removeOptionalTypeMarkerFunction · 0.85
checkExpressionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…