summaryrefslogtreecommitdiff
path: root/server-beta/src/searcher/goto.lua
blob: 8698eef1ede46df1ba730df5f323c162c27e3ea7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local guide    = require 'parser.guide'

local m = {}

function m:eachDef(source, callback)
    local name = source[1]
    local label = guide.getLabel(source, name)
    if label then
        callback {
            source = label,
            uri    = self.uri,
        }
    end
end

return m