(node *ast.ModuleName)
| 1286 | } |
| 1287 | |
| 1288 | func (p *Printer) emitModuleName(node *ast.ModuleName) { |
| 1289 | if node == nil { |
| 1290 | return |
| 1291 | } |
| 1292 | |
| 1293 | switch node.Kind { |
| 1294 | case ast.KindIdentifier: |
| 1295 | p.emitBindingIdentifier(node.AsIdentifier()) |
| 1296 | case ast.KindStringLiteral: |
| 1297 | p.emitStringLiteral(node.AsStringLiteral()) |
| 1298 | default: |
| 1299 | panic(fmt.Sprintf("unexpected ModuleName: %v", node.Kind)) |
| 1300 | } |
| 1301 | } |
| 1302 | |
| 1303 | func (p *Printer) emitModuleExportName(node *ast.ModuleExportName) { |
| 1304 | if node == nil { |
no test coverage detected