X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=vendor%2Fgithub.com%2Fhashicorp%2Fhcl2%2Fhcl%2Fhclsyntax%2Fvariables.go;h=91f417f873f4c98bc8c3ab43a8b95d992450837c;hb=03f98475e953bf27db3019fa0840ebc6df7fd295;hp=eeee1a529a09b3110bbeca1208b22b6ebbc19dbd;hpb=15c0b25d011f37e7c20aeca9eaf461f78285b8d9;p=github%2Ffretlink%2Fterraform-provider-statuscake.git diff --git a/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/variables.go b/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/variables.go index eeee1a5..91f417f 100644 --- a/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/variables.go +++ b/vendor/github.com/hashicorp/hcl2/hcl/hclsyntax/variables.go @@ -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() }