We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95e1c17 commit 39887d9Copy full SHA for 39887d9
parser/context.go
@@ -66,7 +66,7 @@ func directChildren(node ast.Node) []ast.Node {
66
case *ast.Slice:
67
return []ast.Node{node.Target, node.BeginIndex, node.EndIndex, node.Step}
68
case *ast.Local:
69
- return []ast.Node{node.Body}
+ return nil
70
case *ast.LiteralBoolean:
71
return nil
72
case *ast.LiteralNull:
@@ -249,7 +249,12 @@ func specialChildren(node ast.Node) []ast.Node {
249
250
251
252
- return nil
+ children := make([]ast.Node, 1, len(node.Binds)+1)
253
+ children[0] = node.Body
254
+ for _, bind := range node.Binds {
255
+ children = append(children, bind.Body)
256
+ }
257
+ return children
258
259
260
0 commit comments