diff options
| author | Martin Atkins <mart@degeneration.co.uk> | 2018-08-09 08:47:37 -0700 |
|---|---|---|
| committer | Martin Atkins <mart@degeneration.co.uk> | 2018-08-09 08:47:37 -0700 |
| commit | 59bb5c26709127dde2b5dceeb12ce2d656fe58c0 (patch) | |
| tree | bbf7aa176ae3567fb1cef7355a493068934d789b /hclwrite | |
| parent | c8c208e08341f2d9526882716c671809a01c1552 (diff) | |
hclwrite: Fix NewExpressionAbsTraversal signature
It is still not implemented, but at least now it is declared with the
correct return type.
Diffstat (limited to 'hclwrite')
| -rw-r--r-- | hclwrite/ast_expression.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hclwrite/ast_expression.go b/hclwrite/ast_expression.go index c1494f7..cdd6e48 100644 --- a/hclwrite/ast_expression.go +++ b/hclwrite/ast_expression.go @@ -40,7 +40,7 @@ func NewExpressionLiteral(val cty.Value) *Expression { // NewExpressionAbsTraversal constructs an expression that represents the // given traversal, which must be absolute or this function will panic. -func NewExpressionAbsTraversal(traversal hcl.Traversal) { +func NewExpressionAbsTraversal(traversal hcl.Traversal) *Expression { panic("NewExpressionAbsTraversal not yet implemented") } |
