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

Method Value

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

Source from the content-addressed store, hash-verified

1139}
1140
1141func (e *TupleConsExpr) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) {
1142 var vals []cty.Value
1143 var diags hcl.Diagnostics
1144
1145 vals = make([]cty.Value, len(e.Exprs))
1146 for i, expr := range e.Exprs {
1147 val, valDiags := expr.Value(ctx)
1148 vals[i] = val
1149 diags = append(diags, valDiags...)
1150 }
1151
1152 return cty.TupleVal(vals), diags
1153}
1154
1155func (e *TupleConsExpr) Range() hcl.Range {
1156 return e.SrcRange

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected