Skip to content

Commit dd52dcc

Browse files
committed
fix(diagnostics): fix undocumented method returns never being ignored for missing-export-doc
1 parent 65909aa commit dd52dcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/core/diagnostics/missing-export-doc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ return function (uri, callback)
1919
guide.eachSourceType(state.ast, 'setfield', function (source)
2020
await.delay()
2121
if source.value.type ~= "function" then return end
22-
helper.CheckFunctionNamed(source.field[1], source.value, source.value, callback,
22+
helper.CheckFunctionNamed(source.field[1], source.value, nil, callback,
2323
'DIAG_MISSING_EXPORTED_FIELD_DOC_COMMENT',
2424
'DIAG_MISSING_EXPORTED_FIELD_DOC_PARAM',
2525
'DIAG_MISSING_EXPORTED_FIELD_DOC_RETURN')

test/diagnostics/missing-export-doc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ end
3535
TEST [[
3636
local M = {}
3737
38-
<!M.f1 = function() end!>
38+
M.f1 = <!function() end!>
3939
4040
---comment
4141
M.f1 = function()

0 commit comments

Comments
 (0)