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

Function checkNonNullAssertion

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

Source from the content-addressed store, hash-verified

77344 return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType);
77345 }
77346 function checkNonNullAssertion(node) {
77347 return node.flags & 32 /* NodeFlags.OptionalChain */ ? checkNonNullChain(node) :
77348 getNonNullableType(checkExpression(node.expression));
77349 }
77350 function checkExpressionWithTypeArguments(node) {
77351 checkGrammarExpressionWithTypeArguments(node);
77352 var exprType = node.kind === 228 /* SyntaxKind.ExpressionWithTypeArguments */ ? checkExpression(node.expression) :

Callers 1

checkExpressionWorkerFunction · 0.85

Calls 3

checkNonNullChainFunction · 0.85
getNonNullableTypeFunction · 0.85
checkExpressionFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…