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

Function isThisPropertyAccessInConstructor

test/fixtures/snapshot/typescript.js:74615–74618  ·  view source on GitHub ↗
(node, prop)

Source from the content-addressed store, hash-verified

74613 return false;
74614 }
74615 function isThisPropertyAccessInConstructor(node, prop) {
74616 return (isConstructorDeclaredProperty(prop) || ts.isThisProperty(node) && isAutoTypedProperty(prop))
74617 && ts.getThisContainer(node, /*includeArrowFunctions*/ true) === getDeclaringConstructor(prop);
74618 }
74619 function checkPropertyAccessExpressionOrQualifiedName(node, left, leftType, right, checkMode) {
74620 var parentSymbol = getNodeLinks(left).resolvedSymbol;
74621 var assignmentKind = ts.getAssignmentTargetKind(node);

Calls 3

isAutoTypedPropertyFunction · 0.85
getDeclaringConstructorFunction · 0.85

Tested by

no test coverage detected