Skip to content

Commit

Permalink
ast: Implement dummy evaluate_notstatement
Browse files Browse the repository at this point in the history
  • Loading branch information
mensinda committed Mar 6, 2020
1 parent b78db74 commit 213d2f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mesonbuild/ast/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
IfClauseNode,
IndexNode,
MethodNode,
NotNode,
OrNode,
PlusAssignmentNode,
StringNode,
Expand Down Expand Up @@ -235,6 +236,10 @@ def evaluate_orstatement(self, cur: OrNode) -> bool:
self.evaluate_statement(cur.right)
return False

def evaluate_notstatement(self, cur: NotNode) -> bool:
self.evaluate_statement(cur.value)
return False

def evaluate_foreach(self, node: ForeachClauseNode) -> None:
try:
self.evaluate_codeblock(node.block)
Expand Down
1 change: 1 addition & 0 deletions test cases/unit/57 introspection/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ b1 = get_option('test_opt1')
b2 = get_option('test_opt2')
test_bool = b1 or b2
test_bool = b1 and b2
test_bool = not test_bool

set_variable('list_test_plusassign', [])
list_test_plusassign += ['bugs everywhere']
Expand Down

0 comments on commit 213d2f1

Please sign in to comment.