From e81e3400f29bf310e05afb9305a2cfa1c3271873 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, 10 Feb 2022 16:10:56 +0800 Subject: update --- script/core/definition.lua | 11 ----------- script/core/infer.lua | 1 - 2 files changed, 12 deletions(-) (limited to 'script/core') diff --git a/script/core/definition.lua b/script/core/definition.lua index 6c6b3df3..11223187 100644 --- a/script/core/definition.lua +++ b/script/core/definition.lua @@ -1,4 +1,3 @@ -local searcher = require 'core.searcher' local workspace = require 'workspace' local files = require 'files' local vm = require 'vm' @@ -132,21 +131,11 @@ return function (uri, offset) end local defs = vm.getAllDefs(source) - local values = {} - for _, src in ipairs(defs) do - local value = searcher.getObjectValue(src) - if value and value ~= src and guide.isLiteral(value) then - values[value] = true - end - end for _, src in ipairs(defs) do if src.dummy then goto CONTINUE end - if values[src] then - goto CONTINUE - end local root = guide.getRoot(src) if not root then goto CONTINUE diff --git a/script/core/infer.lua b/script/core/infer.lua index 691424a2..ab5e2180 100644 --- a/script/core/infer.lua +++ b/script/core/infer.lua @@ -1,4 +1,3 @@ -local searcher = require 'core.searcher' local config = require 'config' local util = require 'utility' local vm = require "vm.vm" -- cgit v1.2.3