From 6de8c401f4345863e0800a7262ca66c49b0a281c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 15 Nov 2019 15:25:56 +0800 Subject: =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=94=A8=20special=20=E5=B0=B1?= =?UTF-8?q?=E8=A1=8C=E4=BA=86=EF=BC=8C=E4=B8=8D=E5=86=8D=E9=80=92=E5=BD=92?= =?UTF-8?q?=E5=88=86=E6=9E=90=E7=89=B9=E6=AE=8AAPI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server-beta/src/searcher/eachRef.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server-beta/src/searcher/eachRef.lua') diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua index 1c607fec..a7a86739 100644 --- a/server-beta/src/searcher/eachRef.lua +++ b/server-beta/src/searcher/eachRef.lua @@ -67,7 +67,7 @@ local function ofReturn(rtn, index, callback) end local function ofSpecialCall(call, func, index, callback) - local name = searcher.getSpecialName(func) + local name = func.special if name == 'setmetatable' then if index == 1 then local args = call.args @@ -170,7 +170,7 @@ local function asValue(source, callback) if args[2] == t then local call = args.parent local func = call.node - if searcher.getSpecialName(func) == 'setmetatable' then + if func.special == 'setmetatable' then searcher.eachRef(args[1], callback) end end @@ -204,7 +204,7 @@ local function asArg(source, callback) if parent.type == 'callargs' then local call = parent.parent local func = call.node - local name = searcher.getSpecialName(func) + local name = func.special if name == 'setmetatable' then if parent[1] == source then if parent[2] then -- cgit v1.2.3