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 | |
parent | efa14d6f2453368d6e2f385c947713ac4ce84bc8 (diff) | |
download | lua-language-server-1771a5ad0cc93831f58ac4b93aedb3666aaea511.zip |
cleanup
Diffstat (limited to 'script')
-rw-r--r-- | script/parser/guide.lua | 2 | ||||
-rw-r--r-- | script/parser/luadoc.lua | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 8fb94bca..378d2613 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -743,8 +743,6 @@ end ---@return integer {name = 'row'} ---@return integer {name = 'col'} function m.positionOf(lines, offset) - tracy.ZoneBeginN('positionOf') - local _ <close> = tracy.ZoneEnd if offset <= 0 then return 1, 0 end 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) |