MCPcopy Create free account
hub / github.com/nodejs/node / inferTypeFromPropertyAssignment

Function inferTypeFromPropertyAssignment

test/fixtures/snapshot/typescript.js:157241–157246  ·  view source on GitHub ↗
(assignment, usage)

Source from the content-addressed store, hash-verified

157239 }
157240 }
157241 function inferTypeFromPropertyAssignment(assignment, usage) {
157242 var nodeWithRealType = ts.isVariableDeclaration(assignment.parent.parent) ?
157243 assignment.parent.parent :
157244 assignment.parent;
157245 addCandidateThisType(usage, checker.getTypeAtLocation(nodeWithRealType));
157246 }
157247 function inferTypeFromPropertyDeclaration(declaration, usage) {
157248 addCandidateThisType(usage, checker.getTypeAtLocation(declaration.parent));
157249 }

Callers 1

calculateUsageOfNodeFunction · 0.85

Calls 1

addCandidateThisTypeFunction · 0.85

Tested by

no test coverage detected