(expr ast.Expr)
| 326 | return nil |
| 327 | } |
| 328 | func (un *unparser) visitConst(expr ast.Expr) error { |
| 329 | val := expr.AsLiteral() |
| 330 | if err := un.visitConstVal(val); err != nil { |
| 331 | return fmt.Errorf("unsupported constant: %v", expr) |
| 332 | } |
| 333 | return nil |
| 334 | } |
| 335 | |
| 336 | func (un *unparser) visitIdent(expr ast.Expr) error { |
| 337 | un.str.WriteString(expr.AsIdent()) |
no test coverage detected