diff options
| author | ruki <[email protected]> | 2019-02-17 23:23:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-02-18 10:09:01 +0800 |
| commit | 7feefff1352d470cb10b3b0117f2a418a8bccdf9 (patch) | |
| tree | 1765584a1919ab0f1ea5e83451c07afcb95dd79a /xmake/core/base/interpreter.lua | |
| parent | 3d5bb63eab591dbb5f7ad9ac69894fe84e537751 (diff) | |
add keyvalues for scope info
Diffstat (limited to 'xmake/core/base/interpreter.lua')
| -rw-r--r-- | xmake/core/base/interpreter.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/base/interpreter.lua b/xmake/core/base/interpreter.lua index ba7dc908f..e7dd5079d 100644 --- a/xmake/core/base/interpreter.lua +++ b/xmake/core/base/interpreter.lua @@ -531,13 +531,14 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter) -- get the root scope info of the given scope kind, e.g. root.target local results = {} + local scope_opt = {interpreter = self, remove_repeat = remove_repeat, enable_filter = enable_filter} if scope_kind and scope_kind:startswith("root.") then local root_scope = scopes._ROOT[scope_kind:sub(6)] if root_scope then results = self:_handle(root_scope, remove_repeat, enable_filter) end - return scopeinfo.new(scope_kind, results, self) + return scopeinfo.new(scope_kind, results, scope_opt) -- get the root scope info without scope kind elseif scope_kind == "root" or scope_kind == nil then @@ -546,7 +547,7 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter) if root_scope then results = self:_handle(root_scope, remove_repeat, enable_filter) end - return scopeinfo.new(scope_kind, results, self) + return scopeinfo.new(scope_kind, results, scope_opt) -- get the results of the given scope kind elseif scope_kind then @@ -580,7 +581,7 @@ function interpreter:_make(scope_kind, remove_repeat, enable_filter) end -- add this scope - results[scope_name] = scopeinfo.new(scope_kind, self:_handle(scope_values, remove_repeat, enable_filter), self) + results[scope_name] = scopeinfo.new(scope_kind, self:_handle(scope_values, remove_repeat, enable_filter), scope_opt) end end end |
