summaryrefslogtreecommitdiff
path: root/script/vm
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-24 21:23:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-24 21:23:09 +0800
commit6cbc089f83eec21a33c792943e323a0f50a56e0a (patch)
tree4df28def4aae951a96705c99991a3c82b2683470 /script/vm
parent061c9b03686c7ae8b3dc70d491ff003258b13bf6 (diff)
downloadlua-language-server-6cbc089f83eec21a33c792943e323a0f50a56e0a.zip
command test
Diffstat (limited to 'script/vm')
-rw-r--r--script/vm/eachDef.lua3
-rw-r--r--script/vm/eachRef.lua3
-rw-r--r--script/vm/getDocs.lua3
-rw-r--r--script/vm/getGlobals.lua3
-rw-r--r--script/vm/getLibrary.lua1
-rw-r--r--script/vm/getLinks.lua3
-rw-r--r--script/vm/vm.lua4
7 files changed, 7 insertions, 13 deletions
diff --git a/script/vm/eachDef.lua b/script/vm/eachDef.lua
index 65cae73e..2bfad4bf 100644
--- a/script/vm/eachDef.lua
+++ b/script/vm/eachDef.lua
@@ -1,5 +1,4 @@
----@diagnostic disable-next-line
----@class vm
+---@type vm
local vm = require 'vm.vm'
local searcher = require 'core.searcher'
diff --git a/script/vm/eachRef.lua b/script/vm/eachRef.lua
index 6e008e2a..35425818 100644
--- a/script/vm/eachRef.lua
+++ b/script/vm/eachRef.lua
@@ -1,5 +1,4 @@
----@diagnostic disable-next-line
----@class vm
+---@type vm
local vm = require 'vm.vm'
local searcher = require 'core.searcher'
diff --git a/script/vm/getDocs.lua b/script/vm/getDocs.lua
index 8ee942d1..c0205654 100644
--- a/script/vm/getDocs.lua
+++ b/script/vm/getDocs.lua
@@ -1,7 +1,6 @@
local files = require 'files'
local guide = require 'parser.guide'
----@diagnostic disable-next-line
----@class vm
+---@type vm
local vm = require 'vm.vm'
local config = require 'config'
local collector = require 'core.collector'
diff --git a/script/vm/getGlobals.lua b/script/vm/getGlobals.lua
index d794a394..6dacda43 100644
--- a/script/vm/getGlobals.lua
+++ b/script/vm/getGlobals.lua
@@ -1,7 +1,6 @@
local collector = require 'core.collector'
local guide = require 'parser.guide'
----@diagnostic disable-next-line
----@class vm
+---@type vm
local vm = require 'vm.vm'
local noder = require 'core.noder'
diff --git a/script/vm/getLibrary.lua b/script/vm/getLibrary.lua
index 1002babb..1a8d8ffd 100644
--- a/script/vm/getLibrary.lua
+++ b/script/vm/getLibrary.lua
@@ -1,4 +1,3 @@
----@diagnostic disable-next-line
---@class vm
local vm = require 'vm.vm'
diff --git a/script/vm/getLinks.lua b/script/vm/getLinks.lua
index 8df79dca..161396f6 100644
--- a/script/vm/getLinks.lua
+++ b/script/vm/getLinks.lua
@@ -1,6 +1,5 @@
local guide = require 'parser.guide'
----@diagnostic disable-next-line
----@class vm
+---@type vm
local vm = require 'vm.vm'
local files = require 'files'
diff --git a/script/vm/vm.lua b/script/vm/vm.lua
index f51def71..6abaaa0e 100644
--- a/script/vm/vm.lua
+++ b/script/vm/vm.lua
@@ -13,8 +13,8 @@ local mathHuge = math.huge
local weakMT = { __mode = 'kv' }
_ENV = nil
----@diagnostic disable-next-line
----@class vm
+
+---@type vm
local m = {}
function m.getArgInfo(source)