MCPcopy Create free account
hub / github.com/araddon/qlbridge / Expr

Method Expr

expr/node.go:600–607  ·  view source on GitHub ↗

Expr convert the FuncNode to Expr

()

Source from the content-addressed store, hash-verified

598
599// Expr convert the FuncNode to Expr
600func (m *FuncNode) Expr() *Expr {
601 fe := &Expr{Op: lex.TokenUdfExpr.String()}
602 if len(m.Args) > 0 {
603 fe.Args = []*Expr{{Identity: m.Name}}
604 fe.Args = append(fe.Args, ExprsFromNodes(m.Args)...)
605 }
606 return fe
607}
608func (m *FuncNode) FromExpr(e *Expr) error {
609 if e.Op != lex.TokenUdfExpr.String() {
610 return fmt.Errorf("Expected 'expr' but got %v", e.Op)

Callers

nothing calls this directly

Calls 2

ExprsFromNodesFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected