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

Function annotateVariableDeclaration

test/fixtures/snapshot/typescript.js:156711–156715  ·  view source on GitHub ↗
(changes, importAdder, sourceFile, declaration, program, host, cancellationToken)

Source from the content-addressed store, hash-verified

156709 return declaration;
156710 }
156711 function annotateVariableDeclaration(changes, importAdder, sourceFile, declaration, program, host, cancellationToken) {
156712 if (ts.isIdentifier(declaration.name)) {
156713 annotate(changes, importAdder, sourceFile, declaration, inferTypeForVariableFromUsage(declaration.name, program, cancellationToken), program, host);
156714 }
156715 }
156716 function annotateParameters(changes, importAdder, sourceFile, parameterDeclaration, containingFunction, program, host, cancellationToken) {
156717 if (!ts.isIdentifier(parameterDeclaration.name)) {
156718 return;

Callers 1

doChangeFunction · 0.85

Calls 2

annotateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…