From 25314fd2aed81aa5281bc3d93dbcc7919368ebe1 Mon Sep 17 00:00:00 2001 From: Bicker Date: Wed, 22 May 2019 17:45:37 +0200 Subject: Initial commit --- ql/ast/nodes/statements/if_statement.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ql/ast/nodes/statements/if_statement.py (limited to 'ql/ast/nodes/statements/if_statement.py') diff --git a/ql/ast/nodes/statements/if_statement.py b/ql/ast/nodes/statements/if_statement.py new file mode 100644 index 0000000..68845b8 --- /dev/null +++ b/ql/ast/nodes/statements/if_statement.py @@ -0,0 +1,11 @@ +from ql.ast.nodes.statements.block_statement import BlockStatementNode + + +class IfNode(BlockStatementNode): + def __init__(self, metadata, block, condition): + super(IfNode, self).__init__(metadata, block) + self.__condition = condition + + @property + def condition(self): + return self.__condition -- cgit v1.2.3