(base *hcl.EvalContext)
| 32 | } |
| 33 | |
| 34 | func (i *iteration) EvalContext(base *hcl.EvalContext) *hcl.EvalContext { |
| 35 | new := base.NewChild() |
| 36 | |
| 37 | if i != nil { |
| 38 | new.Variables = map[string]cty.Value{} |
| 39 | for name, otherIt := range i.Inherited { |
| 40 | new.Variables[name] = otherIt.Object() |
| 41 | } |
| 42 | new.Variables[i.IteratorName] = i.Object() |
| 43 | } |
| 44 | |
| 45 | return new |
| 46 | } |
| 47 | |
| 48 | func (i *iteration) MakeChild(iteratorName string, key, value cty.Value) *iteration { |
| 49 | if i == nil { |
no test coverage detected