summaryrefslogtreecommitdiff
path: root/xmake/core/base/scopeinfo.lua
diff options
context:
space:
mode:
authorOpportunityLiu <[email protected]>2019-07-24 10:42:55 +0800
committerOpportunityLiu <[email protected]>2019-07-24 10:42:55 +0800
commitb1a47544b8f60c12541b8b5a0f4383639d348af3 (patch)
treeea52bf2d354a9d04405ef1fadf1d45b82f5a90af /xmake/core/base/scopeinfo.lua
parentae7d6509749944564b939bd36cf6ab895dcff0af (diff)
fix typo
Diffstat (limited to 'xmake/core/base/scopeinfo.lua')
-rw-r--r--xmake/core/base/scopeinfo.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/xmake/core/base/scopeinfo.lua b/xmake/core/base/scopeinfo.lua
index 3028883eb..c16cd096a 100644
--- a/xmake/core/base/scopeinfo.lua
+++ b/xmake/core/base/scopeinfo.lua
@@ -77,10 +77,10 @@ function _instance:_api_handle(values)
return table.unwrap(values)
end
--- save api source info, .e.g call api() in sourcefile:linenumber
+-- save api source info, e.g. call api() in sourcefile:linenumber
function _instance:_api_save_sourceinfo_to_scope(scope, apiname, values)
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
local sourceinfo = debug.getinfo(5, "Sl")
if sourceinfo then
scope["__sourceinfo_" .. apiname] = scope["__sourceinfo_" .. apiname] or {}
@@ -313,7 +313,7 @@ function _instance:_api_set_pathes(name, ...)
end
end
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_api_save_sourceinfo_to_scope(scope, name, pathes)
end
@@ -353,7 +353,7 @@ function _instance:_api_add_pathes(name, ...)
end
end
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_api_save_sourceinfo_to_scope(scope, name, pathes)
end
@@ -381,7 +381,7 @@ function _instance:_api_del_pathes(name, ...)
-- save values
scope[name] = self:_api_handle(table.join2(table.wrap(scope[name]), pathes_deleted))
- -- save api source info, .e.g call api() in sourcefile:linenumber
+ -- save api source info, e.g. call api() in sourcefile:linenumber
self:_api_save_sourceinfo_to_scope(scope, name, pathes)
end