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

Function getTypeForBindingElementParent

test/fixtures/snapshot/typescript.js:55725–55731  ·  view source on GitHub ↗
(node, checkMode)

Source from the content-addressed store, hash-verified

55723 // Return the type of a binding element parent. We check SymbolLinks first to see if a type has been
55724 // assigned by contextual typing.
55725 function getTypeForBindingElementParent(node, checkMode) {
55726 if (checkMode !== 0 /* CheckMode.Normal */) {
55727 return getTypeForVariableLikeDeclaration(node, /*includeOptionality*/ false, checkMode);
55728 }
55729 var symbol = getSymbolOfNode(node);
55730 return symbol && getSymbolLinks(symbol).type || getTypeForVariableLikeDeclaration(node, /*includeOptionality*/ false, checkMode);
55731 }
55732 function getRestType(source, properties, symbol) {
55733 source = filterType(source, function (t) { return !(t.flags & 98304 /* TypeFlags.Nullable */); });
55734 if (source.flags & 131072 /* TypeFlags.Never */) {

Callers 3

getTypeForBindingElementFunction · 0.85
getNarrowedTypeOfSymbolFunction · 0.85

Calls 3

getSymbolOfNodeFunction · 0.85
getSymbolLinksFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…