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

Function getInferenceContext

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

Source from the content-addressed store, hash-verified

73050 }
73051 }
73052 function getInferenceContext(node) {
73053 var ancestor = ts.findAncestor(node, function (n) { return !!n.inferenceContext; });
73054 return ancestor && ancestor.inferenceContext;
73055 }
73056 function getContextualJsxElementAttributesType(node, contextFlags) {
73057 if (ts.isJsxOpeningElement(node) && node.parent.contextualType && contextFlags !== 4 /* ContextFlags.Completions */) {
73058 // Contextually applied type is moved from attributes up to the outer jsx attributes so when walking up from the children they get hit

Calls

no outgoing calls

Tested by

no test coverage detected