summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-25 21:07:22 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-25 21:07:22 +0800
commit5242ea4f866f112e91ffa918db07626280decb71 (patch)
tree83f2d805120d0ac99b6d927dfd6d5b82ef32913c /script/files.lua
parent8da13a0f7daba5eabed3d801643bc260d9990193 (diff)
downloadlua-language-server-5242ea4f866f112e91ffa918db07626280decb71.zip
clean up code
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua28
1 files changed, 17 insertions, 11 deletions
diff --git a/script/files.lua b/script/files.lua
index 1eed92b5..30281a17 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -14,17 +14,18 @@ local smerger = require 'string-merger'
local m = {}
-m.openMap = {}
-m.libraryMap = {}
-m.fileMap = {}
-m.dllMap = {}
-m.watchList = {}
-m.notifyCache = {}
-m.assocVersion = -1
-m.assocMatcher = nil
-m.globalVersion = 0
-m.linesMap = setmetatable({}, { __mode = 'v' })
-m.astMap = setmetatable({}, { __mode = 'v' })
+m.openMap = {}
+m.libraryMap = {}
+m.fileMap = {}
+m.dllMap = {}
+m.watchList = {}
+m.notifyCache = {}
+m.assocVersion = -1
+m.assocMatcher = nil
+m.globalVersion = 0
+m.linesMap = setmetatable({}, { __mode = 'v' })
+m.originLinesMap = setmetatable({}, { __mode = 'v' })
+m.astMap = setmetatable({}, { __mode = 'v' })
local uriMap = {}
local function getUriKey(uri)
@@ -367,6 +368,11 @@ function m.getLines(uri)
return lines
end
+
+function m.getOriginLines(uri)
+
+end
+
--- 获取原始uri
function m.getOriginUri(uri)
uri = getUriKey(uri)