This commit is contained in:
Daniel 2025-01-14 17:31:26 +08:00
parent 4325228196
commit 632dcd08f3
No known key found for this signature in database
GPG Key ID: 86211BA83DF03017

View File

@ -93,7 +93,7 @@ func statTree(tree *parse.Tree) (ret *util.BlockStatResult) {
blockCount := 0 blockCount := 0
var databaseBlockNodes []*ast.Node var databaseBlockNodes []*ast.Node
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus { ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
if !entering { if !entering || tree.Root == n {
return ast.WalkContinue return ast.WalkContinue
} }