summaryrefslogtreecommitdiff
path: root/xmake/plugins/check/checkers/api/api_checker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-02-03 00:49:42 +0800
committerruki <[email protected]>2023-02-03 00:49:42 +0800
commit743399e488b2371511235bde557daeeedcd653ce (patch)
tree97d14620fb66df30749be37a5f1f2b00d455efdd /xmake/plugins/check/checkers/api/api_checker.lua
parentc68a29c3dede70aad99f6a36f16391f1ae0ce31b (diff)
improve sourceinfo
Diffstat (limited to 'xmake/plugins/check/checkers/api/api_checker.lua')
-rw-r--r--xmake/plugins/check/checkers/api/api_checker.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/check/checkers/api/api_checker.lua b/xmake/plugins/check/checkers/api/api_checker.lua
index 44cecad28..5ebd7094f 100644
--- a/xmake/plugins/check/checkers/api/api_checker.lua
+++ b/xmake/plugins/check/checkers/api/api_checker.lua
@@ -49,7 +49,7 @@ function _show(apiname, value, target, opt)
end
-- get source information
- local sourceinfo = (target:get("__sourceinfo_" .. apiname) or {})[value] or {}
+ local sourceinfo = target:sourceinfo(apiname, value) or {}
local sourcetips = sourceinfo.file or ""
if sourceinfo.line then
sourcetips = sourcetips .. ":" .. sourceinfo.line .. ": "