aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/introspection.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-04-23 14:58:18 +0200
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-04-29 12:17:40 +0200
commite75211d321d7416b8a4871d3015a7915fb86b53b (patch)
treee6460b95e475fe7fabbb47ee318160ecb6228357 /mesonbuild/ast/introspection.py
parentbf98ffca9ee67a6a942b9abf96b536692370cf03 (diff)
downloadmeson-e75211d321d7416b8a4871d3015a7915fb86b53b.zip
meson-e75211d321d7416b8a4871d3015a7915fb86b53b.tar.gz
meson-e75211d321d7416b8a4871d3015a7915fb86b53b.tar.bz2
Fix builtin variable names
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r--mesonbuild/ast/introspection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index 34e3e09..b6ec450 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -173,9 +173,9 @@ class IntrospectionInterpreter(AstInterpreter):
arg_node = curr.args
elif isinstance(curr, IdNode):
# Try to resolve the ID and append the node to the queue
- id = curr.value
- if id in self.assignments and self.assignments[id]:
- tmp_node = self.assignments[id][0]
+ var_name = curr.value
+ if var_name in self.assignments and self.assignments[var_name]:
+ tmp_node = self.assignments[var_name][0]
if isinstance(tmp_node, (ArrayNode, IdNode, FunctionNode)):
srcqueue += [tmp_node]
elif isinstance(curr, ArithmeticNode):