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