blob: 7a60a74f3731255e239b722434e10b19641dcc66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
local files = require 'files'
local lang = require 'language'
return function (uri, callback)
local state = files.getState(uri)
if not state then
return
end
if not state.ast.docs then
return
end
for _, doc in ipairs(state.ast.docs) do
if doc.type == 'doc.param'
and not doc.bindSource then
callback {
start = doc.param.start,
finish = doc.param.finish,
message = lang.script('DIAG_UNDEFINED_DOC_PARAM', doc.param[1])
}
end
end
end
|