(node *ast.ModifierLike)
| 1489 | } |
| 1490 | |
| 1491 | func (p *Printer) emitModifierLike(node *ast.ModifierLike) { |
| 1492 | switch { |
| 1493 | case ast.IsDecorator(node): |
| 1494 | p.emitDecorator(node.AsDecorator()) |
| 1495 | case ast.IsModifier(node): |
| 1496 | p.emitKeywordNode(node) |
| 1497 | default: |
| 1498 | panic(fmt.Sprintf("unhandled ModifierLike: %v", node.Kind)) |
| 1499 | } |
| 1500 | } |
| 1501 | |
| 1502 | func (p *Printer) emitTypeParameters(parentNode *ast.Node, nodes *ast.TypeParameterList) { |
| 1503 | if nodes == nil { |
nothing calls this directly
no test coverage detected