summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-29 17:37:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-29 17:37:55 +0800
commit4f391eea466b3d04b058e83d1c166780ad885f2f (patch)
treec6ab5c5a2278b1aa35ffb024fca5fb9dc2dff8ba /script/parser/guide.lua
parent6b682f2df0dcd76b70c4357e21045ea2175c146b (diff)
downloadlua-language-server-4f391eea466b3d04b058e83d1c166780ad885f2f.zip
improve
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index fe0c62f1..998163aa 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -580,7 +580,7 @@ function m.isBetweenRange(source, tStart, tFinish)
end
--- 添加child
-function m.addChilds(list, obj)
+local function addChilds(list, obj)
local tp = obj.type
if not tp then
return
@@ -612,7 +612,7 @@ function m.eachSourceContain(ast, offset, callback)
return res
end
end
- m.addChilds(list, obj)
+ addChilds(list, obj)
end
end
end
@@ -638,7 +638,7 @@ function m.eachSourceBetween(ast, start, finish, callback)
return res
end
end
- m.addChilds(list, obj)
+ addChilds(list, obj)
end
end
end
@@ -705,7 +705,7 @@ function m.eachSource(ast, callback)
index = index + 1
if not mark[obj] then
mark[obj] = true
- m.addChilds(cache, obj)
+ addChilds(cache, obj)
end
end
end