From bafe0e44914ad3b669388b94b91d9992edeb8e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 21 Nov 2019 20:06:20 +0800 Subject: =?UTF-8?q?hover=E7=9A=84=E7=AC=AC=E4=B8=80=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/vm/eachRef.lua | 4 ++-- server-beta/src/vm/getLibrary.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'server-beta/src/vm') diff --git a/server-beta/src/vm/eachRef.lua b/server-beta/src/vm/eachRef.lua index 543a0c09..465b1267 100644 --- a/server-beta/src/vm/eachRef.lua +++ b/server-beta/src/vm/eachRef.lua @@ -163,7 +163,7 @@ end local function asValue(source, callback) local parent = source.parent if parent and parent.value == source then - if guide.getKeyString(parent) == '__index' then + if guide.getName(parent) == '__index' then if parent.type == 'tablefield' or parent.type == 'tableindex' then local t = parent.parent @@ -274,7 +274,7 @@ local function ofLocal(loc, callback) end end elseif ref.type == 'getglobal' then - if guide.getKeyString(ref) == '_G' then + if guide.getName(ref) == '_G' then callback { source = ref, mode = 'get', diff --git a/server-beta/src/vm/getLibrary.lua b/server-beta/src/vm/getLibrary.lua index d2645790..fd05347e 100644 --- a/server-beta/src/vm/getLibrary.lua +++ b/server-beta/src/vm/getLibrary.lua @@ -20,7 +20,7 @@ local function getLibInNode(source, nodeLib) if not nodeLib.child then return nil end - local key = guide.getKeyString(source) + local key = guide.getName(source) local defLib = nodeLib.child[key] return defLib end -- cgit v1.2.3