(node *ast.ModuleExportName)
| 1301 | } |
| 1302 | |
| 1303 | func (p *Printer) emitModuleExportName(node *ast.ModuleExportName) { |
| 1304 | if node == nil { |
| 1305 | return |
| 1306 | } |
| 1307 | |
| 1308 | switch node.Kind { |
| 1309 | case ast.KindIdentifier: |
| 1310 | p.emitIdentifierName(node.AsIdentifier()) |
| 1311 | case ast.KindStringLiteral: |
| 1312 | p.emitStringLiteral(node.AsStringLiteral()) |
| 1313 | default: |
| 1314 | panic(fmt.Sprintf("unexpected ModuleExportName: %v", node.Kind)) |
| 1315 | } |
| 1316 | } |
| 1317 | |
| 1318 | func (p *Printer) emitImportAttributeName(node *ast.ImportAttributeName) { |
| 1319 | switch node.Kind { |
no test coverage detected