(node *ast.ClassElement)
| 1779 | } |
| 1780 | |
| 1781 | func (p *Printer) emitClassElement(node *ast.ClassElement) { |
| 1782 | switch node.Kind { |
| 1783 | case ast.KindPropertyDeclaration: |
| 1784 | p.emitPropertyDeclaration(node.AsPropertyDeclaration()) |
| 1785 | case ast.KindMethodDeclaration: |
| 1786 | p.emitMethodDeclaration(node.AsMethodDeclaration()) |
| 1787 | case ast.KindClassStaticBlockDeclaration: |
| 1788 | p.emitClassStaticBlockDeclaration(node.AsClassStaticBlockDeclaration()) |
| 1789 | case ast.KindConstructor: |
| 1790 | p.emitConstructor(node.AsConstructorDeclaration()) |
| 1791 | case ast.KindGetAccessor: |
| 1792 | p.emitGetAccessorDeclaration(node.AsGetAccessorDeclaration()) |
| 1793 | case ast.KindSetAccessor: |
| 1794 | p.emitSetAccessorDeclaration(node.AsSetAccessorDeclaration()) |
| 1795 | case ast.KindIndexSignature: |
| 1796 | p.emitIndexSignature(node.AsIndexSignatureDeclaration()) |
| 1797 | case ast.KindSemicolonClassElement: |
| 1798 | p.emitSemicolonClassElement(node.AsSemicolonClassElement()) |
| 1799 | case ast.KindNotEmittedStatement: |
| 1800 | p.emitNotEmittedStatement(node.AsNotEmittedStatement()) |
| 1801 | case ast.KindJSTypeAliasDeclaration: |
| 1802 | p.emitTypeAliasDeclaration(node.AsTypeAliasDeclaration()) |
| 1803 | default: |
| 1804 | panic(fmt.Sprintf("unexpected ClassElement: %v", node.Kind)) |
| 1805 | } |
| 1806 | } |
| 1807 | |
| 1808 | func (p *Printer) emitTypeElement(node *ast.TypeElement) { |
| 1809 | switch node.Kind { |
nothing calls this directly
no test coverage detected