Traverse is a convenience function to apply TraverseAbs followed by TraverseRel.
(ctx *EvalContext)
| 197 | // Traverse is a convenience function to apply TraverseAbs followed by |
| 198 | // TraverseRel. |
| 199 | func (t TraversalSplit) Traverse(ctx *EvalContext) (cty.Value, Diagnostics) { |
| 200 | v1, diags := t.TraverseAbs(ctx) |
| 201 | if diags.HasErrors() { |
| 202 | return cty.DynamicVal, diags |
| 203 | } |
| 204 | v2, newDiags := t.TraverseRel(v1) |
| 205 | diags = append(diags, newDiags...) |
| 206 | return v2, diags |
| 207 | } |
| 208 | |
| 209 | // Join concatenates together the Abs and Rel parts to produce a single |
| 210 | // absolute traversal. |
nothing calls this directly
no test coverage detected