Skip to content

Commit e8ffc6b

Browse files
committed
Rename expr function from 'getExprValue' to '$patcher_value_getter'.
1 parent 6c8f684 commit e8ffc6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

patchers/value/value.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import (
5252
"github.com/antonmedv/expr/conf"
5353
)
5454

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.
5656
// Use it directly as an Option to expr.Compile()
5757
var Patcher = func() expr.Option {
5858
vPatcher := patcher{}
@@ -178,7 +178,7 @@ func (patcher) Visit(node *ast.Node) {
178178
for _, t := range supportedInterfaces {
179179
if nodeType.Implements(t) {
180180
callnode := &ast.CallNode{
181-
Callee: &ast.IdentifierNode{Value: "getExprValue"},
181+
Callee: &ast.IdentifierNode{Value: "$patcher_value_getter"},
182182
Arguments: []ast.Node{id},
183183
}
184184

@@ -236,7 +236,7 @@ func getExprValue(params ...any) (any, error) {
236236
return params[0], nil
237237
}
238238

239-
var getExprValueFunc = expr.Function("getExprValue", getExprValue,
239+
var getExprValueFunc = expr.Function("$patcher_value_getter", getExprValue,
240240
new(func(BoolValuer) bool),
241241
new(func(IntValuer) int),
242242
new(func(Int8Valuer) int8),

0 commit comments

Comments
 (0)