From 5242ea4f866f112e91ffa918db07626280decb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 25 Jan 2021 21:07:22 +0800 Subject: clean up code --- script/files.lua | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'script/files.lua') 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) -- cgit v1.2.3