MCPcopy
hub / github.com/sqlc-dev/sqlc / convertBinaryNode

Method convertBinaryNode

internal/engine/sqlite/convert.go:776–786  ·  view source on GitHub ↗
(n *parser.Expr_binaryContext)

Source from the content-addressed store, hash-verified

774}
775
776func (c *cc) convertBinaryNode(n *parser.Expr_binaryContext) ast.Node {
777 return &ast.A_Expr{
778 Name: &ast.List{
779 Items: []ast.Node{
780 &ast.String{Str: n.GetChild(1).(antlr.TerminalNode).GetText()},
781 },
782 },
783 Lexpr: c.convert(n.Expr(0)),
784 Rexpr: c.convert(n.Expr(1)),
785 }
786}
787
788func (c *cc) convertBoolNode(n *parser.Expr_boolContext) ast.Node {
789 var op ast.BoolExprType

Callers 1

convertMethod · 0.95

Calls 3

convertMethod · 0.95
GetTextMethod · 0.80
ExprMethod · 0.65

Tested by

no test coverage detected