aboutsummaryrefslogtreecommitdiff
path: root/ql/ast/nodes/expressions/unary_operators/unary_operator.py
diff options
context:
space:
mode:
authorBicker <bickerkards@tuta.io>2019-05-22 17:45:37 +0200
committerBicker <bickerkards@tuta.io>2019-05-22 17:45:37 +0200
commit25314fd2aed81aa5281bc3d93dbcc7919368ebe1 (patch)
tree1995521ee652e419926de5fced0f2e3b655e70fb /ql/ast/nodes/expressions/unary_operators/unary_operator.py
Initial commitHEADmaster
Diffstat (limited to 'ql/ast/nodes/expressions/unary_operators/unary_operator.py')
-rw-r--r--ql/ast/nodes/expressions/unary_operators/unary_operator.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ql/ast/nodes/expressions/unary_operators/unary_operator.py b/ql/ast/nodes/expressions/unary_operators/unary_operator.py
new file mode 100644
index 0000000..fa75249
--- /dev/null
+++ b/ql/ast/nodes/expressions/unary_operators/unary_operator.py
@@ -0,0 +1,11 @@
+from ql.ast.nodes.expressions.expression import ExpressionNode
+
+
+class UnaryOperatorNode(ExpressionNode):
+ def __init__(self, metadata, expression_type, expression, value):
+ super(UnaryOperatorNode, self).__init__(metadata, expression_type, value)
+ self.__expression = expression
+
+ @property
+ def expression(self):
+ return self.__expression