MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / WhenClause

Struct WhenClause

pkg/sql/ast/ast.go:779–783  ·  view source on GitHub ↗

WhenClause represents WHEN ... THEN ... in CASE expression

Source from the content-addressed store, hash-verified

777
778// WhenClause represents WHEN ... THEN ... in CASE expression
779type WhenClause struct {
780 Condition Expression
781 Result Expression
782 Pos models.Location // Source position of the WHEN keyword (1-based line and column)
783}
784
785func (w *WhenClause) expressionNode() {}
786func (w WhenClause) TokenLiteral() string { return "WHEN" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected