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

Method Expr

expr/node.go:1860–1867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1858 }
1859}
1860func (m *IncludeNode) Expr() *Expr {
1861 fe := &Expr{Op: lex.TokenInclude.String()}
1862 fe.Args = []*Expr{m.Identity.Expr()}
1863 if m.negated {
1864 return &Expr{Op: "not", Args: []*Expr{fe}}
1865 }
1866 return fe
1867}
1868func (m *IncludeNode) FromExpr(e *Expr) error {
1869 if e.Op == "" {
1870 return fmt.Errorf("Invalid IncludeNode %+v", e)

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
ExprMethod · 0.65

Tested by

no test coverage detected