case_expr.go 282 B

12345678910111213141516171819
  1. package pg
  2. import (
  3. "github.com/kyleconroy/sqlc/internal/sql/ast"
  4. )
  5. type CaseExpr struct {
  6. Xpr ast.Node
  7. Casetype Oid
  8. Casecollid Oid
  9. Arg ast.Node
  10. Args *ast.List
  11. Defresult ast.Node
  12. Location int
  13. }
  14. func (n *CaseExpr) Pos() int {
  15. return n.Location
  16. }