MCPcopy Create free account
hub / github.com/expr-lang/expr / BuiltinNode

Struct BuiltinNode

ast/node.go:184–191  ·  view source on GitHub ↗

BuiltinNode represents a builtin function call.

Source from the content-addressed store, hash-verified

182
183// BuiltinNode represents a builtin function call.
184type 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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected