@@ -52,7 +52,7 @@ import (
52
52
"github.com/antonmedv/expr/conf"
53
53
)
54
54
55
- // Patcher is an expr.Option that both patches the program and adds the `getExprValue ` function.
55
+ // Patcher is an expr.Option that both patches the program and adds the `$patcher_value_getter ` function.
56
56
// Use it directly as an Option to expr.Compile()
57
57
var Patcher = func () expr.Option {
58
58
vPatcher := patcher {}
@@ -178,7 +178,7 @@ func (patcher) Visit(node *ast.Node) {
178
178
for _ , t := range supportedInterfaces {
179
179
if nodeType .Implements (t ) {
180
180
callnode := & ast.CallNode {
181
- Callee : & ast.IdentifierNode {Value : "getExprValue " },
181
+ Callee : & ast.IdentifierNode {Value : "$patcher_value_getter " },
182
182
Arguments : []ast.Node {id },
183
183
}
184
184
@@ -236,7 +236,7 @@ func getExprValue(params ...any) (any, error) {
236
236
return params [0 ], nil
237
237
}
238
238
239
- var getExprValueFunc = expr .Function ("getExprValue " , getExprValue ,
239
+ var getExprValueFunc = expr .Function ("$patcher_value_getter " , getExprValue ,
240
240
new (func (BoolValuer ) bool ),
241
241
new (func (IntValuer ) int ),
242
242
new (func (Int8Valuer ) int8 ),
0 commit comments