ast: Handle NotNode

pull/6765/head
Daniel Mensinger 5 years ago
parent 96eeef62ea
commit 54511b4a0f
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4
  1. 5
      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]

Loading…
Cancel
Save