BuiltinNode represents a builtin function call.
| 182 | |
| 183 | // BuiltinNode represents a builtin function call. |
| 184 | type BuiltinNode struct { |
| 185 | base |
| 186 | Name string // Name of the builtin function. Like "len" in "len(foo)". |
| 187 | Arguments []Node // Arguments of the builtin function. |
| 188 | Throws bool // If true then accessing a field or array index can throw an error. Used by optimizer. |
| 189 | Map Node // Used by optimizer to fold filter() and map() builtins. |
| 190 | Threshold *int // Used by optimizer for count() early termination. |
| 191 | } |
| 192 | |
| 193 | // PredicateNode represents a predicate. |
| 194 | // Example: |
nothing calls this directly
no outgoing calls
no test coverage detected