1
2
3
4
5
6
7
8
9
10
use crate::{CodeBuffer, Expression};

/// An element with expression.
pub trait WithExpression {
    /// Gets the expression.
    fn expression(&self) -> &Box<dyn Expression>;

    /// Writes the expression.
    fn write_expression(&self, b: &mut CodeBuffer);
}