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

Function generateMemberNames

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

Source from the content-addressed store, hash-verified

114446 }
114447 }
114448 function generateMemberNames(node) {
114449 if (!node)
114450 return;
114451 switch (node.kind) {
114452 case 296 /* SyntaxKind.PropertyAssignment */:
114453 case 297 /* SyntaxKind.ShorthandPropertyAssignment */:
114454 case 167 /* SyntaxKind.PropertyDeclaration */:
114455 case 169 /* SyntaxKind.MethodDeclaration */:
114456 case 172 /* SyntaxKind.GetAccessor */:
114457 case 173 /* SyntaxKind.SetAccessor */:
114458 generateNameIfNeeded(node.name);
114459 break;
114460 }
114461 }
114462 function generateNameIfNeeded(name) {
114463 if (name) {
114464 if (ts.isGeneratedIdentifier(name)) {

Callers

nothing calls this directly

Calls 1

generateNameIfNeededFunction · 0.85

Tested by

no test coverage detected