(ctx *hcl.EvalContext)
| 47 | } |
| 48 | |
| 49 | func (e exprWrap) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) { |
| 50 | if e.i == nil { |
| 51 | // If we don't have an active iteration then we can just use the |
| 52 | // given EvalContext directly. |
| 53 | return e.prepareValue(e.Expression.Value(ctx)) |
| 54 | } |
| 55 | extCtx := e.i.EvalContext(ctx) |
| 56 | return e.prepareValue(e.Expression.Value(extCtx)) |
| 57 | } |
| 58 | |
| 59 | // UnwrapExpression returns the expression being wrapped by this instance. |
| 60 | // This allows the original expression to be recovered by hcl.UnwrapExpression. |
nothing calls this directly
no test coverage detected