From ed6011c30754bfaa646f5a9a819f20f1f32cbfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 3 Nov 2021 16:18:37 +0800 Subject: update async mark --- script/core/diagnostics/await-in-sync.lua | 1 + script/core/diagnostics/deprecated.lua | 1 + script/core/diagnostics/redundant-value.lua | 1 + script/core/diagnostics/type-check.lua | 1 + script/core/diagnostics/undefined-field.lua | 1 + script/core/diagnostics/undefined-global.lua | 1 + script/core/diagnostics/unused-function.lua | 1 + 7 files changed, 7 insertions(+) (limited to 'script/core/diagnostics') diff --git a/script/core/diagnostics/await-in-sync.lua b/script/core/diagnostics/await-in-sync.lua index dffb994d..167e0942 100644 --- a/script/core/diagnostics/await-in-sync.lua +++ b/script/core/diagnostics/await-in-sync.lua @@ -4,6 +4,7 @@ local vm = require 'vm' local lang = require 'language' local await = require 'await' +---@async return function (uri, callback) local state = files.getState(uri) if not state then diff --git a/script/core/diagnostics/deprecated.lua b/script/core/diagnostics/deprecated.lua index 7cd9e00f..e9a1fef7 100644 --- a/script/core/diagnostics/deprecated.lua +++ b/script/core/diagnostics/deprecated.lua @@ -8,6 +8,7 @@ local await = require 'await' local noder = require 'core.noder' local types = {'getglobal', 'getfield', 'getindex', 'getmethod'} +---@async return function (uri, callback) local ast = files.getState(uri) if not ast then diff --git a/script/core/diagnostics/redundant-value.lua b/script/core/diagnostics/redundant-value.lua index edead570..6f60303b 100644 --- a/script/core/diagnostics/redundant-value.lua +++ b/script/core/diagnostics/redundant-value.lua @@ -4,6 +4,7 @@ local lang = require 'language' local guide = require 'parser.guide' local await = require 'await' +---@async return function (uri, callback) local state = files.getState(uri) if not state then diff --git a/script/core/diagnostics/type-check.lua b/script/core/diagnostics/type-check.lua index 3fa5050c..8728b169 100644 --- a/script/core/diagnostics/type-check.lua +++ b/script/core/diagnostics/type-check.lua @@ -412,6 +412,7 @@ local function matchParams(paramsTypes, i, arg) return false, messages end +---@async return function (uri, callback) local ast = files.getState(uri) if not ast then diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua index 66b1f8c5..2e64f0cc 100644 --- a/script/core/diagnostics/undefined-field.lua +++ b/script/core/diagnostics/undefined-field.lua @@ -18,6 +18,7 @@ local SkipCheckClass = { ['lightuserdata'] = true, } +---@async return function (uri, callback) local ast = files.getState(uri) if not ast then diff --git a/script/core/diagnostics/undefined-global.lua b/script/core/diagnostics/undefined-global.lua index 640f521b..48c8a226 100644 --- a/script/core/diagnostics/undefined-global.lua +++ b/script/core/diagnostics/undefined-global.lua @@ -14,6 +14,7 @@ local requireLike = { ['load'] = true, } +---@async return function (uri, callback) local ast = files.getState(uri) if not ast then diff --git a/script/core/diagnostics/unused-function.lua b/script/core/diagnostics/unused-function.lua index ada4a23d..0e0c0003 100644 --- a/script/core/diagnostics/unused-function.lua +++ b/script/core/diagnostics/unused-function.lua @@ -18,6 +18,7 @@ local function isToBeClosed(source) return false end +---@async return function (uri, callback) local ast = files.getState(uri) if not ast then -- cgit v1.2.3