MCPcopy
hub / github.com/hashicorp/hcl / Value

Method Value

ext/dynblock/expr_wrap.go:49–57  ·  view source on GitHub ↗
(ctx *hcl.EvalContext)

Source from the content-addressed store, hash-verified

47}
48
49func (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.

Callers

nothing calls this directly

Calls 3

prepareValueMethod · 0.95
EvalContextMethod · 0.80
ValueMethod · 0.65

Tested by

no test coverage detected