| 135 | } |
| 136 | |
| 137 | type filter struct { |
| 138 | expr ql.Expr |
| 139 | seq *ql.Sequence |
| 140 | parser *ql.Parser |
| 141 | accessors []Accessor |
| 142 | fields []Field |
| 143 | segments []fields.Segment |
| 144 | boundFields []*ql.BoundFieldLiteral |
| 145 | // seqBoundFields contains per-sequence bound fields resolved from bound field literals |
| 146 | seqBoundFields map[int][]BoundField |
| 147 | // stringFields contains filter field names mapped to their string values |
| 148 | stringFields map[fields.Field][]string |
| 149 | hasFunctions bool |
| 150 | } |
| 151 | |
| 152 | // Compile parsers the filter expression and builds a binary expression tree |
| 153 | // where leaf nodes represent constants/variables while internal nodes are |
nothing calls this directly
no outgoing calls
no test coverage detected