blob: 36f373d274a4c55b93d5de4b07613e2084ea0c64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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(label)
end
end
return m
|