diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-17 09:50:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-17 09:50:57 +0800 |
commit | 1771a5ad0cc93831f58ac4b93aedb3666aaea511 (patch) | |
tree | 7288ce14640f2b5e9e3e6d0651403d15e9d76598 /script/parser/luadoc.lua | |
parent | efa14d6f2453368d6e2f385c947713ac4ce84bc8 (diff) | |
download | lua-language-server-1771a5ad0cc93831f58ac4b93aedb3666aaea511.zip |
cleanup
Diffstat (limited to 'script/parser/luadoc.lua')
-rw-r--r-- | script/parser/luadoc.lua | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/script/parser/luadoc.lua b/script/parser/luadoc.lua index b86d01f2..da612e60 100644 --- a/script/parser/luadoc.lua +++ b/script/parser/luadoc.lua @@ -3,7 +3,6 @@ local re = require 'parser.relabel' local lines = require 'parser.lines' local guide = require 'parser.guide' local grammar = require 'parser.grammar' -local util = require 'utility' local TokenTypes, TokenStarts, TokenFinishs, TokenContents local Ci, Offset, pushError, Ct, NextComment, Lines @@ -1352,19 +1351,14 @@ local bindDocAccept = { } local function bindDocs(state) - tracy.ZoneBeginN('bindDocs #1') local text = state.lua local sources = {} guide.eachSourceTypes(state.ast, bindDocAccept, function (src) sources[#sources+1] = src end) - tracy.ZoneEnd() - tracy.ZoneBeginN('bindDocs #2') table.sort(sources, function (a, b) return a.start < b.start end) - tracy.ZoneEnd() - tracy.ZoneBeginN('bindDocs #3') local binded for _, doc in ipairs(state.ast.docs) do if not isNextLine(Lines, text, binded, doc) then @@ -1379,12 +1373,9 @@ local function bindDocs(state) end end bindDoc(sources, Lines, binded) - tracy.ZoneEnd() end return function (_, state) - tracy.ZoneBeginN('luadoc') - local _ <close> = tracy.ZoneEnd local ast = state.ast local comments = state.comms table.sort(comments, function (a, b) |