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

Method Value

hclsyntax/expression.go:170–176  ·  view source on GitHub ↗
(ctx *hcl.EvalContext)

Source from the content-addressed store, hash-verified

168}
169
170func (e *RelativeTraversalExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) {
171 src, diags := e.Source.Value(ctx)
172 ret, travDiags := e.Traversal.TraverseRel(src)
173 setDiagEvalContext(travDiags, e, ctx)
174 diags = append(diags, travDiags...)
175 return ret, diags
176}
177
178func (e *RelativeTraversalExpr) Range() hcl.Range {
179 return e.SrcRange

Callers

nothing calls this directly

Calls 3

setDiagEvalContextFunction · 0.85
ValueMethod · 0.65
TraverseRelMethod · 0.45

Tested by

no test coverage detected