From 7881d1a3d91b59d2dd8c28a72453e0e6c44a902f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 22 Apr 2022 03:18:35 +0800 Subject: new diagnostic `missing-parameter` --- locale/en-us/script.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'locale/en-us/script.lua') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index a166cf47..f37f53ff 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -33,7 +33,9 @@ DIAG_PREVIOUS_CALL = DIAG_PREFIELD_CALL = 'Will be interpreted as `{}{}`. It may be necessary to add a `,` or `;`.' DIAG_OVER_MAX_ARGS = -'The function takes only {:d} parameters, but you passed {:d}.' +'The function received a maximum of {:d} arguments, but got {:d}.' +DIAG_MISS_ARGS = +'the function received at least {:d} arguments, but got {:d}.' DIAG_OVER_MAX_VALUES = 'Only has {} variables, but you set {} values.' DIAG_AMBIGUITY_1 = -- cgit v1.2.3 From aefede278514dd0f46299374735385f7ca1fde07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 24 Apr 2022 23:07:48 +0800 Subject: update locale --- locale/en-us/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/en-us/script.lua') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index f37f53ff..8d902250 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -96,6 +96,8 @@ DIAG_NOT_YIELDABLE = 'The {}th parameter of this function was not marked as yieldable, but an async function was passed in. (Use `---@param name async fun()` to mark as yieldable)' DIAG_DISCARD_RETURNS = 'The return values of this function cannot be discarded.' +DIAG_NEED_CHECK_NIL = +'Need check nil.' DIAG_CIRCLE_DOC_CLASS = 'Circularly inherited classes.' DIAG_DOC_FIELD_NO_CLASS = -- cgit v1.2.3 From bdd079408013f0b09788e05c01d6e5a3649d1dcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 25 Apr 2022 01:57:01 +0800 Subject: update locale --- locale/en-us/script.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'locale/en-us/script.lua') diff --git a/locale/en-us/script.lua b/locale/en-us/script.lua index 8d902250..1cba9dd5 100644 --- a/locale/en-us/script.lua +++ b/locale/en-us/script.lua @@ -275,6 +275,8 @@ PARSER_LUADOC_MISS_DIAG_MODE = ' expected.' PARSER_LUADOC_ERROR_DIAG_MODE = ' incorrect.' +PARSER_LUADOC_MISS_LOCAL_NAME = +' expected.' SYMBOL_ANONYMOUS = '' -- cgit v1.2.3