Skip to content

Commit 8c978fa

Browse files
authored
Add support for expression unwrapping in hclext.BoundExpr (#271)
1 parent 19e177f commit 8c978fa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

hclext/expression.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,9 @@ func (e BoundExpr) Range() hcl.Range {
4545
func (e BoundExpr) StartRange() hcl.Range {
4646
return e.original.StartRange()
4747
}
48+
49+
// UnwrapExpression returns the original expression.
50+
// This satisfies the hcl.unwrapExpression interface.
51+
func (e BoundExpr) UnwrapExpression() hcl.Expression {
52+
return e.original
53+
}

0 commit comments

Comments
 (0)