Skip to content

Commit

Permalink
Add support for expression unwrapping in hclext.BoundExpr (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 authored Jul 29, 2023
1 parent 19e177f commit 8c978fa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hclext/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ func (e BoundExpr) Range() hcl.Range {
func (e BoundExpr) StartRange() hcl.Range {
return e.original.StartRange()
}

// UnwrapExpression returns the original expression.
// This satisfies the hcl.unwrapExpression interface.
func (e BoundExpr) UnwrapExpression() hcl.Expression {
return e.original
}

0 comments on commit 8c978fa

Please sign in to comment.