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

Function inferTypeFromPropertyAccessExpression

test/fixtures/snapshot/typescript.js:157215–157223  ·  view source on GitHub ↗
(parent, usage)

Source from the content-addressed store, hash-verified

157213 }
157214 }
157215 function inferTypeFromPropertyAccessExpression(parent, usage) {
157216 var name = ts.escapeLeadingUnderscores(parent.name.text);
157217 if (!usage.properties) {
157218 usage.properties = new ts.Map();
157219 }
157220 var propertyUsage = usage.properties.get(name) || createEmptyUsage();
157221 calculateUsageOfNode(parent, propertyUsage);
157222 usage.properties.set(name, propertyUsage);
157223 }
157224 function inferTypeFromPropertyElementExpression(parent, node, usage) {
157225 if (node === parent.argumentExpression) {
157226 usage.isNumberOrString = true;

Callers 1

calculateUsageOfNodeFunction · 0.85

Calls 4

createEmptyUsageFunction · 0.85
calculateUsageOfNodeFunction · 0.85
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected