* Specialized visitor that visits the immediate children of a class with TypeScript syntax. * * @param node The node to visit.
(node)
| 91804 | * @param node The node to visit. |
| 91805 | */ |
| 91806 | function classElementVisitorWorker(node) { |
| 91807 | switch (node.kind) { |
| 91808 | case 171 /* SyntaxKind.Constructor */: |
| 91809 | return visitConstructor(node); |
| 91810 | case 167 /* SyntaxKind.PropertyDeclaration */: |
| 91811 | // Property declarations are not TypeScript syntax, but they must be visited |
| 91812 | // for the decorator transformation. |
| 91813 | return visitPropertyDeclaration(node); |
| 91814 | case 176 /* SyntaxKind.IndexSignature */: |
| 91815 | case 172 /* SyntaxKind.GetAccessor */: |
| 91816 | case 173 /* SyntaxKind.SetAccessor */: |
| 91817 | case 169 /* SyntaxKind.MethodDeclaration */: |
| 91818 | case 170 /* SyntaxKind.ClassStaticBlockDeclaration */: |
| 91819 | // Fallback to the default visit behavior. |
| 91820 | return visitorWorker(node); |
| 91821 | case 234 /* SyntaxKind.SemicolonClassElement */: |
| 91822 | return node; |
| 91823 | default: |
| 91824 | return ts.Debug.failBadSyntaxKind(node); |
| 91825 | } |
| 91826 | } |
| 91827 | function modifierVisitor(node) { |
| 91828 | if (ts.modifierToFlag(node.kind) & 116958 /* ModifierFlags.TypeScriptModifier */) { |
| 91829 | return undefined; |
nothing calls this directly
no test coverage detected