hclsyntax: Walk must call Walker.Exit before returning

This commit is contained in:
Martin Atkins 2018-09-25 08:23:11 -07:00
parent ffb8e97eb7
commit 2933fec4da

View File

@ -37,6 +37,8 @@ func Walk(node Node, w Walker) hcl.Diagnostics {
diags = append(diags, Walk(node, w)...)
return node
})
moreDiags := w.Exit(node)
diags = append(diags, moreDiags...)
return diags
}