diff options
Diffstat (limited to 'script/core/diagnostics/missing-local-export-doc.lua')
-rw-r--r-- | script/core/diagnostics/missing-local-export-doc.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/missing-local-export-doc.lua b/script/core/diagnostics/missing-local-export-doc.lua index 5825c115..f12e954f 100644 --- a/script/core/diagnostics/missing-local-export-doc.lua +++ b/script/core/diagnostics/missing-local-export-doc.lua @@ -10,6 +10,9 @@ local function findSetField(ast, name, callback) await.delay() if source.node[1] == name then local funcPtr = source.value.node + if not funcPtr then + return + end local func = funcPtr.value if funcPtr.type == 'local' and func.type == 'function' then helper.CheckFunction(func, callback, 'DIAG_MISSING_LOCAL_EXPORT_DOC_COMMENT', 'DIAG_MISSING_LOCAL_EXPORT_DOC_PARAM', 'DIAG_MISSING_LOCAL_EXPORT_DOC_RETURN') |