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

Function inferTypeForVariableFromUsage

test/fixtures/snapshot/typescript.js:156851–156854  ·  view source on GitHub ↗
(token, program, cancellationToken)

Source from the content-addressed store, hash-verified

156849 });
156850 }
156851 function inferTypeForVariableFromUsage(token, program, cancellationToken) {
156852 var references = getReferences(token, program, cancellationToken);
156853 return inferTypeFromReferences(program, references, cancellationToken).single();
156854 }
156855 function inferTypeForParametersFromUsage(func, sourceFile, program, cancellationToken) {
156856 var references = getFunctionReferences(func, sourceFile, program, cancellationToken);
156857 return references && inferTypeFromReferences(program, references, cancellationToken).parameters(func) ||

Callers 4

doChangeFunction · 0.85
annotateSetAccessorFunction · 0.85

Calls 2

getReferencesFunction · 0.85
inferTypeFromReferencesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…