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

Method AsTraversal

traversal_for_expr.go:25–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23func AbsTraversalForExpr(expr Expression) (Traversal, Diagnostics) {
24 type asTraversal interface {
25 AsTraversal() Traversal
26 }
27
28 physExpr := UnwrapExpressionUntil(expr, func(expr Expression) bool {

Callers 2

AbsTraversalForExprFunction · 0.65
ExprAsKeywordFunction · 0.65

Implementers 9

asTraversalSupportedtraversal_for_expr_test.go
asTraversalSupportedAttrtraversal_for_expr_test.go
asTraversalDeclinedtraversal_for_expr_test.go
LiteralValueExprhclsyntax/expression.go
ScopeTraversalExprhclsyntax/expression.go
RelativeTraversalExprhclsyntax/expression.go
ObjectConsKeyExprhclsyntax/expression.go
expressionjson/structure.go
mockExprTraversalhcltest/mock.go

Calls

no outgoing calls

Tested by

no test coverage detected