diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-12-12 18:35:29 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2020-05-23 18:13:25 +0200 |
commit | 54511b4a0f319514ecc16dc29d964187192f716d (patch) | |
tree | 42e24ae0d91062c5a67ffe5c4bde00286dbfcfab /mesonbuild/ast/interpreter.py | |
parent | 96eeef62ea791b19fbf9bd57c8494743b2de80bf (diff) | |
download | meson-54511b4a0f319514ecc16dc29d964187192f716d.zip meson-54511b4a0f319514ecc16dc29d964187192f716d.tar.gz meson-54511b4a0f319514ecc16dc29d964187192f716d.tar.bz2 |
ast: Handle NotNode
Diffstat (limited to 'mesonbuild/ast/interpreter.py')
-rw-r--r-- | mesonbuild/ast/interpreter.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py index cc5c94c..6a826ef 100644 --- a/mesonbuild/ast/interpreter.py +++ b/mesonbuild/ast/interpreter.py @@ -297,6 +297,11 @@ class AstInterpreter(interpreterbase.InterpreterBase): elif isinstance(node, ElementaryNode): result = node.value + elif isinstance(node, NotNode): + result = self.resolve_node(node.value, include_unknown_args, id_loop_detect) + if isinstance(result, bool): + result = not result + elif isinstance(node, ArrayNode): result = [x for x in node.args.arguments] |