From e8058b91113196218d13befcbc529ddc2b621a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 8 Oct 2019 17:34:50 +0800 Subject: method --- server-beta/src/parser/guide.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server-beta/src/parser/guide.lua') diff --git a/server-beta/src/parser/guide.lua b/server-beta/src/parser/guide.lua index 428f3b8d..2120fe48 100644 --- a/server-beta/src/parser/guide.lua +++ b/server-beta/src/parser/guide.lua @@ -368,11 +368,15 @@ function m.getKeyName(obj) or tp == 'setfield' or tp == 'tablefield' then return 's|' .. obj.field[1] + elseif tp == 'getmethod' + or tp == 'setmethod' then + return 's|' .. obj.method[1] elseif tp == 'getindex' or tp == 'setindex' or tp == 'tableindex' then return m.getKeyName(obj.index) - elseif tp == 'field' then + elseif tp == 'field' + or tp == 'method' then return 's|' .. obj[1] elseif tp == 'index' then return m.getKeyName(obj.index) -- cgit v1.2.3