MCPcopy
hub / github.com/expr-lang/expr / OperatorOverloading

Struct OperatorOverloading

patcher/operator_override.go:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11)
12
13type OperatorOverloading struct {
14 Operator string // Operator token to overload.
15 Overloads []string // List of function names to replace operator with.
16 Env *nature.Nature // Env type.
17 Functions conf.FunctionsTable // Env functions.
18 applied bool // Flag to indicate if any changes were made to the tree.
19 NtCache *nature.Cache
20}
21
22func (p *OperatorOverloading) Visit(node *ast.Node) {
23 binaryNode, ok := (*node).(*ast.BinaryNode)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected