hclsyntax: Walk must call Walker.Exit before returning
This commit is contained in:
parent
ffb8e97eb7
commit
2933fec4da
@ -37,6 +37,8 @@ func Walk(node Node, w Walker) hcl.Diagnostics {
|
|||||||
diags = append(diags, Walk(node, w)...)
|
diags = append(diags, Walk(node, w)...)
|
||||||
return node
|
return node
|
||||||
})
|
})
|
||||||
|
moreDiags := w.Exit(node)
|
||||||
|
diags = append(diags, moreDiags...)
|
||||||
return diags
|
return diags
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user