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

Function visitSuperKeyword

test/fixtures/snapshot/typescript.js:101446–101451  ·  view source on GitHub ↗

* Visits the `super` keyword

(isExpressionOfCall)

Source from the content-addressed store, hash-verified

101444 * Visits the `super` keyword
101445 */
101446 function visitSuperKeyword(isExpressionOfCall) {
101447 return hierarchyFacts & 8 /* HierarchyFacts.NonStaticClassElement */
101448 && !isExpressionOfCall
101449 ? factory.createPropertyAccessExpression(factory.createUniqueName("_super", 16 /* GeneratedIdentifierFlags.Optimistic */ | 32 /* GeneratedIdentifierFlags.FileLevel */), "prototype")
101450 : factory.createUniqueName("_super", 16 /* GeneratedIdentifierFlags.Optimistic */ | 32 /* GeneratedIdentifierFlags.FileLevel */);
101451 }
101452 function visitMetaProperty(node) {
101453 if (node.keywordToken === 103 /* SyntaxKind.NewKeyword */ && node.name.escapedText === "target") {
101454 hierarchyFacts |= 32768 /* HierarchyFacts.NewTarget */;

Callers 2

callExpressionVisitorFunction · 0.85
visitorWorkerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected