Skip to main content

gobject_ast/model/expression/
unary.rs

1use serde::Serialize;
2
3use crate::model::{Expression, SourceLocation, UnaryOp};
4
5#[derive(Debug, Clone, Serialize)]
6pub struct UnaryExpression {
7    pub operator: UnaryOp,
8    pub operand: Box<Expression>,
9    pub location: SourceLocation,
10}