Node is a node in an expression tree, implemented by different types (binary, urnary, func, identity, etc) qlbridge does not currently implement statements (if, for, switch, etc) just expressions, and operators
| 67 | // qlbridge does not currently implement statements (if, for, switch, etc) |
| 68 | // just expressions, and operators |
| 69 | Node interface { |
| 70 | // String representation of Node parseable back to itself |
| 71 | String() string |
| 72 | |
| 73 | // WriteDialect Given a dialect writer write out, equivalent of String() |
| 74 | // but allows different escape characters |
| 75 | WriteDialect(w DialectWriter) |
| 76 | |
| 77 | // Validate Syntax validation of this expression node |
| 78 | Validate() error |
| 79 | |
| 80 | // NodePb Convert this node to a Protobuf copy of it |
| 81 | NodePb() *NodePb |
| 82 | // FromPB Convert a protobuf presentation of node to Node. |
| 83 | FromPB(*NodePb) Node |
| 84 | |
| 85 | // Expr Convert node into a simple expression syntax |
| 86 | // which can be used for json respresentation |
| 87 | Expr() *Expr |
| 88 | // FromExpr |
| 89 | FromExpr(*Expr) error |
| 90 | |
| 91 | // Equal compares deep equality of |
| 92 | Equal(Node) bool |
| 93 | |
| 94 | // NodeType the String, Identity, etc |
| 95 | NodeType() string |
| 96 | } |
| 97 | |
| 98 | // NodeArgs is an interface for nodes which have child arguments |
| 99 | NodeArgs interface { |
no outgoing calls
no test coverage detected