summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-20 19:20:53 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-20 19:20:53 +0800
commita04cffb43132645f63e5a319f6ca69e0df87dcdb (patch)
tree6a86e894e08bf45d258bedd0240e61389ba6a94e /script/core/diagnostics
parentf7399c6206378b76c87a7386707cf8e24d5a98ac (diff)
downloadlua-language-server-a04cffb43132645f63e5a319f6ca69e0df87dcdb.zip
update
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/assign-type-mismatch.lua2
-rw-r--r--script/core/diagnostics/cast-field-type.lua2
-rw-r--r--script/core/diagnostics/cast-local-type.lua2
3 files changed, 3 insertions, 3 deletions
diff --git a/script/core/diagnostics/assign-type-mismatch.lua b/script/core/diagnostics/assign-type-mismatch.lua
index 89ae0a61..37e18d09 100644
--- a/script/core/diagnostics/assign-type-mismatch.lua
+++ b/script/core/diagnostics/assign-type-mismatch.lua
@@ -46,7 +46,7 @@ return function (uri, callback)
start = source.start,
finish = source.finish,
message = lang.script('DIAG_ASSIGN_TYPE_MISMATCH', {
- loc = vm.getInfer(varNode):view(uri),
+ def = vm.getInfer(varNode):view(uri),
ref = vm.getInfer(valueNode):view(uri),
}),
}
diff --git a/script/core/diagnostics/cast-field-type.lua b/script/core/diagnostics/cast-field-type.lua
index 24299649..eaab0bbe 100644
--- a/script/core/diagnostics/cast-field-type.lua
+++ b/script/core/diagnostics/cast-field-type.lua
@@ -61,7 +61,7 @@ return function (uri, callback)
callback {
start = ref.start,
finish = ref.finish,
- message = lang.script('DIAG_CAST_LOCAL_TYPE', {
+ message = lang.script('DIAG_CAST_FIELD_TYPE', {
def = vm.getInfer(fieldNode):view(uri),
ref = vm.getInfer(ref.value):view(uri),
}),
diff --git a/script/core/diagnostics/cast-local-type.lua b/script/core/diagnostics/cast-local-type.lua
index dd3a37e8..cc4d4a0b 100644
--- a/script/core/diagnostics/cast-local-type.lua
+++ b/script/core/diagnostics/cast-local-type.lua
@@ -34,7 +34,7 @@ return function (uri, callback)
start = ref.start,
finish = ref.finish,
message = lang.script('DIAG_CAST_LOCAL_TYPE', {
- loc = vm.getInfer(locNode):view(uri),
+ def = vm.getInfer(locNode):view(uri),
ref = vm.getInfer(refNode):view(uri),
}),
}