File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -69,13 +69,13 @@ func (c *CallContext) Args() []Value {
69
69
return c .args
70
70
}
71
71
72
- // Expr returns the nth argument expression. The value is evaluated and any
72
+ // Arg returns the nth argument expression. The value is evaluated and any
73
73
// cycle information is accumulated in the context. This allows cycles in
74
74
// arguments to be detected.
75
75
//
76
76
// This method of getting an argument should be used when the argument is used
77
77
// as a schema and may contain cycles.
78
- func (c * CallContext ) Expr (i int ) Value {
78
+ func (c * CallContext ) Arg (i int ) Value {
79
79
// If the call context represents a validator call, the argument will be
80
80
// offset by 1.
81
81
if c .isValidator {
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ var andBuiltin = &adt.Builtin{
118
118
Result : adt .IntKind ,
119
119
RawFunc : func (call * adt.CallContext ) adt.Value {
120
120
c := call .OpContext ()
121
- arg := call .Expr (0 )
121
+ arg := call .Arg (0 )
122
122
123
123
list := c .RawElems (arg )
124
124
if len (list ) == 0 {
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ func (c *CallCtxt) Do() bool {
56
56
// However, this only makes sense if functions also use the same OpContext for
57
57
// further evaluation. We should enforce as we port the old calls.
58
58
func (c * CallCtxt ) Schema (i int ) Schema {
59
- v := c .Expr (i )
59
+ v := c .Arg (i )
60
60
return value .Make (c .ctx , v )
61
61
}
62
62
You can’t perform that action at this time.
0 commit comments