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

Struct exprWrap

ext/dynblock/expr_wrap.go:11–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type exprWrap struct {
12 hcl.Expression
13 i *iteration
14
15 // resultMarks is a set of marks that must be applied to whatever
16 // value results from this expression. We do this whenever a
17 // dynamic block's for_each expression produced a marked result,
18 // since in that case any nested expressions inside are treated
19 // as being derived from that for_each expression.
20 //
21 // (calling applications might choose to reject marks by passing
22 // an [OptCheckForEach] to [Expand] and returning an error when
23 // marks are present, but this mechanism is here to help achieve
24 // reasonable behavior for situations where marks are permitted,
25 // which is the default.)
26 resultMarks cty.ValueMarks
27}
28
29func (e exprWrap) Variables() []hcl.Traversal {
30 raw := e.Expression.Variables()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected