From 73244793bda51290b1028ab1f764867f33cabbc5 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, 9 Jan 2020 17:12:54 +0800 Subject: =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script-beta/core/hover/table.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'script-beta/core/hover/table.lua') diff --git a/script-beta/core/hover/table.lua b/script-beta/core/hover/table.lua index 0cc94103..3c644e0a 100644 --- a/script-beta/core/hover/table.lua +++ b/script-beta/core/hover/table.lua @@ -1,6 +1,5 @@ local vm = require 'vm' local util = require 'utility' -local getClass = require 'core.hover.class' local function getKey(src) local key = vm.getKeyName(src) @@ -8,7 +7,7 @@ local function getKey(src) if not src.index then return '[any]' end - local class = getClass(src.index) + local class = vm.getClass(src.index) if class then return ('[%s]'):format(class) end @@ -32,7 +31,7 @@ end local function getField(src) local tp = vm.getType(src) - local class = getClass(src) + local class = vm.getClass(src) local literal = vm.getLiteral(src) local key = getKey(src) if type(literal) == 'string' and #literal >= 50 then -- cgit v1.2.3