Skip to content

Commit ca2c7f1

Browse files
committed
fix
1 parent fc885c1 commit ca2c7f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/parser/guide.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,12 +706,13 @@ function m.eachSource(ast, callback)
706706
if not obj then
707707
break
708708
end
709-
index = index + 1
710709
if not mark[obj] then
710+
index = index + 1
711711
mark[obj] = true
712712
addChilds(cache, obj)
713713
else
714-
cache[index] = false
714+
cache[index] = cache[#cache]
715+
cache[#cache] = nil
715716
end
716717
end
717718
end

0 commit comments

Comments
 (0)