(node)
| 94618 | return ts.visitEachChild(node, visitor, context); |
| 94619 | } |
| 94620 | function visitElementAccessExpression(node) { |
| 94621 | if (shouldTransformSuperInStaticInitializers && |
| 94622 | ts.isSuperProperty(node) && |
| 94623 | currentStaticPropertyDeclarationOrStaticBlock && |
| 94624 | currentClassLexicalEnvironment) { |
| 94625 | var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts; |
| 94626 | if (facts & 1 /* ClassFacts.ClassWasDecorated */) { |
| 94627 | return visitInvalidSuperProperty(node); |
| 94628 | } |
| 94629 | if (classConstructor && superClassReference) { |
| 94630 | // converts `super[x]` into `Reflect.get(_baseTemp, x, _classTemp)` |
| 94631 | var superProperty = factory.createReflectGetCall(superClassReference, ts.visitNode(node.argumentExpression, visitor, ts.isExpression), classConstructor); |
| 94632 | ts.setOriginalNode(superProperty, node.expression); |
| 94633 | ts.setTextRange(superProperty, node.expression); |
| 94634 | return superProperty; |
| 94635 | } |
| 94636 | } |
| 94637 | return ts.visitEachChild(node, visitor, context); |
| 94638 | } |
| 94639 | function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) { |
| 94640 | if (node.operator === 45 /* SyntaxKind.PlusPlusToken */ || node.operator === 46 /* SyntaxKind.MinusMinusToken */) { |
| 94641 | if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierPropertyAccessExpression(node.operand)) { |
no test coverage detected
searching dependent graphs…