Source File
errors.go
Belonging Package
github.com/freeeve/gochickpeas/gql/internal/semantics
// Package semantics holds the passes between parsing and planning:// desugar (AST normalization), the binder helpers (aggregate detection,// column naming, reference validation), and auto-parameterization for// plan-cache sharing. Ports of the Rust crate's desugar.rs / binder.rs /// autoparam.rs.package semanticsimport// ErrKind says which pipeline sentinel the root package should wrap a// semantic error with (package gql cannot be imported here -- cycle).type ErrKind uint8const (// KindBind is a binding error (unknown variable/function) -> ErrBind.KindBind ErrKind = iota// KindPlan is a planning restriction -> ErrPlan.KindPlan)// Error is a semantic error with the sentinel kind it maps to.type Error struct {Kind ErrKindMsg string}// Error implements the error interface.func ( *Error) () string { return .Msg }// bindErrf is a KindBind error.func bindErrf( string, ...any) *Error {return &Error{Kind: KindBind, Msg: fmt.Sprintf(, ...)}}// planErrf is a KindPlan error.func planErrf( string, ...any) *Error {return &Error{Kind: KindPlan, Msg: fmt.Sprintf(, ...)}}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |