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

Function visitPropertyAccessExpression

test/fixtures/snapshot/typescript.js:94594–94619  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

94592 }
94593 }
94594 function visitPropertyAccessExpression(node) {
94595 if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifier(node.name)) {
94596 var privateIdentifierInfo = accessPrivateIdentifier(node.name);
94597 if (privateIdentifierInfo) {
94598 return ts.setTextRange(ts.setOriginalNode(createPrivateIdentifierAccess(privateIdentifierInfo, node.expression), node), node);
94599 }
94600 }
94601 if (shouldTransformSuperInStaticInitializers &&
94602 ts.isSuperProperty(node) &&
94603 ts.isIdentifier(node.name) &&
94604 currentStaticPropertyDeclarationOrStaticBlock &&
94605 currentClassLexicalEnvironment) {
94606 var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;
94607 if (facts & 1 /* ClassFacts.ClassWasDecorated */) {
94608 return visitInvalidSuperProperty(node);
94609 }
94610 if (classConstructor && superClassReference) {
94611 // converts `super.x` into `Reflect.get(_baseTemp, "x", _classTemp)`
94612 var superProperty = factory.createReflectGetCall(superClassReference, factory.createStringLiteralFromNode(node.name), classConstructor);
94613 ts.setOriginalNode(superProperty, node.expression);
94614 ts.setTextRange(superProperty, node.expression);
94615 return superProperty;
94616 }
94617 }
94618 return ts.visitEachChild(node, visitor, context);
94619 }
94620 function visitElementAccessExpression(node) {
94621 if (shouldTransformSuperInStaticInitializers &&
94622 ts.isSuperProperty(node) &&

Callers 1

visitorWorkerFunction · 0.85

Calls 3

accessPrivateIdentifierFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…