diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-05 21:30:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-05 21:30:04 +0800 |
commit | 30a88ee1b1f60e657393a16e55cddae9cb01a62a (patch) | |
tree | 4b4accb4c91151a1e0813562714063eedd6aacd9 /server-beta/src/core/diagnostics/redundant-value.lua | |
parent | 511be388f88af275d2c1ac6bef0c8964a376b427 (diff) | |
download | lua-language-server-30a88ee1b1f60e657393a16e55cddae9cb01a62a.zip |
整理代码
Diffstat (limited to 'server-beta/src/core/diagnostics/redundant-value.lua')
-rw-r--r-- | server-beta/src/core/diagnostics/redundant-value.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/server-beta/src/core/diagnostics/redundant-value.lua b/server-beta/src/core/diagnostics/redundant-value.lua index b3d19c21..71749f56 100644 --- a/server-beta/src/core/diagnostics/redundant-value.lua +++ b/server-beta/src/core/diagnostics/redundant-value.lua @@ -1,3 +1,14 @@ -return function () +local files = require 'files' +local guide = require 'parser.guide' + +local function check(source) end + +return function (uri, callback) + local ast = files.getAst(uri) + if not ast then + return + end + +end |