operand-iterator.go: removed commented code
This commit is contained in:
parent
d572f3a129
commit
dfae593e86
@ -66,7 +66,7 @@ func evalFirstChild(ctx ExprContext, iteratorTerm *term) (value any, err error)
|
||||
|
||||
func getDataSourceDict(iteratorTerm *term, firstChildValue any) (ds map[string]Functor, err error) {
|
||||
if dictAny, ok := firstChildValue.(*DictType); ok {
|
||||
requiredFields := []string{/*CurrentName,*/ NextName}
|
||||
requiredFields := []string{NextName}
|
||||
fieldsMask := 0b1
|
||||
foundFields := 0
|
||||
ds = make(map[string]Functor)
|
||||
@ -88,7 +88,6 @@ func getDataSourceDict(iteratorTerm *term, firstChildValue any) (ds map[string]F
|
||||
missingFields = append(missingFields, field)
|
||||
}
|
||||
}
|
||||
// err = fmt.Errorf("the data-source must provide a non-nil %q operator(s)", strings.Join(missingFields, ", "))
|
||||
err = iteratorTerm.children[0].Errorf("the data-source must provide a non-nil %q operator(s)", strings.Join(missingFields, ", "))
|
||||
}
|
||||
}
|
||||
@ -127,14 +126,8 @@ func evalIterator(ctx ExprContext, opTerm *term) (v any, err error) {
|
||||
dcCtx := ctx.Clone()
|
||||
exportObjects(dcCtx, initCtx)
|
||||
dc = NewDataCursor(dcCtx, ds, resource)
|
||||
//exportObjects(dc.ctx, initCtx)
|
||||
}
|
||||
|
||||
// dc.nextFunc = ds[NextName]
|
||||
// dc.currentFunc = ds[CurrentName]
|
||||
// dc.cleanFunc = ds[CleanName]
|
||||
// dc.resetFunc = ds[ResetName]
|
||||
|
||||
v = dc
|
||||
} else if list, ok := firstChildValue.(*ListType); ok {
|
||||
var args []any
|
||||
|
Loading…
Reference in New Issue
Block a user