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

Function isSuperContainer

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

Source from the content-addressed store, hash-verified

96411 return node;
96412 }
96413 function isSuperContainer(node) {
96414 var kind = node.kind;
96415 return kind === 257 /* SyntaxKind.ClassDeclaration */
96416 || kind === 171 /* SyntaxKind.Constructor */
96417 || kind === 169 /* SyntaxKind.MethodDeclaration */
96418 || kind === 172 /* SyntaxKind.GetAccessor */
96419 || kind === 173 /* SyntaxKind.SetAccessor */;
96420 }
96421 function createSuperElementAccessInAsyncMethod(argumentExpression, location) {
96422 if (enclosingSuperContainerFlags & 4096 /* NodeCheckFlags.AsyncMethodWithSuperBinding */) {
96423 return ts.setTextRange(factory.createPropertyAccessExpression(factory.createCallExpression(factory.createUniqueName("_superIndex", 16 /* GeneratedIdentifierFlags.Optimistic */ | 32 /* GeneratedIdentifierFlags.FileLevel */),

Callers 1

onEmitNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected