diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-01-08 12:50:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-01-08 12:50:01 +0800 |
commit | ab77d10c858c41789bdcde9f82131e38c21904e0 (patch) | |
tree | 0e6ff8154ecde9618afaebbf152bf344a69efd3a /script-beta/vm/eachDef.lua | |
parent | 94e9e7599c2a00a46c19d9f82ee57c8e9081f1c1 (diff) | |
download | lua-language-server-ab77d10c858c41789bdcde9f82131e38c21904e0.zip |
Revert "暂存"
This reverts commit 18083747fe324811dd0b25a1f0a0a50623003b40.
Diffstat (limited to 'script-beta/vm/eachDef.lua')
-rw-r--r-- | script-beta/vm/eachDef.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/script-beta/vm/eachDef.lua b/script-beta/vm/eachDef.lua index 92e7ec78..61da11d9 100644 --- a/script-beta/vm/eachDef.lua +++ b/script-beta/vm/eachDef.lua @@ -17,21 +17,6 @@ local function ofParentMT(func, callback) vm.eachDef(node, callback) end -local function checkValue(value, callback) - if not value then - return - end - local stype = value.type - if stype == 'number' - or stype == 'string' - or stype == 'function' - or stype == 'table' - or stype == 'nil' - or stype == 'boolean' then - callback(value) - end -end - local function ofLocal(loc, callback) -- 方法中的 self 使用了一个虚拟的定义位置 if loc.tag == 'self' then @@ -39,7 +24,6 @@ local function ofLocal(loc, callback) ofParentMT(func, callback) else callback(loc) - checkValue(loc.value, callback) end local refs = loc.ref if refs then @@ -47,7 +31,6 @@ local function ofLocal(loc, callback) local ref = refs[i] if vm.isSet(ref) then callback(ref) - checkValue(ref.value, callback) end end end |