]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/variables.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / hcl2 / hcl / hclsyntax / variables.go
index eeee1a529a09b3110bbeca1208b22b6ebbc19dbd..91f417f873f4c98bc8c3ab43a8b95d992450837c 100644 (file)
@@ -72,15 +72,15 @@ func (w *variablesWalker) Exit(n Node) hcl.Diagnostics {
 // that the child scope struct wraps.
 type ChildScope struct {
        LocalNames map[string]struct{}
-       Expr       *Expression // pointer because it can be replaced on walk
+       Expr       Expression
 }
 
 func (e ChildScope) walkChildNodes(w internalWalkFunc) {
-       *(e.Expr) = w(*(e.Expr)).(Expression)
+       w(e.Expr)
 }
 
 // Range returns the range of the expression that the ChildScope is
 // encapsulating. It isn't really very useful to call Range on a ChildScope.
 func (e ChildScope) Range() hcl.Range {
-       return (*e.Expr).Range()
+       return e.Expr.Range()
 }