protospec_build/asg/expression/
unary.rs1use super::*;
2
3#[derive(PartialEq, Clone, Debug)]
4pub struct UnaryExpression {
5 pub op: UnaryOp,
6 pub inner: Box<Expression>,
7 pub span: Span,
8}
9
10impl AsgExpression for UnaryExpression {
11 fn get_type(&self) -> Option<Type> {
12 self.inner.get_type()
13 }
14}