use crate::expression_kind::ExpressionKind;
use ocelot_base::span::Span;
/// Expression node with an explicit source span.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Expression {
pub kind: ExpressionKind,
pub span: Span,
}
impl Expression {
/// Creates an expression from its kind and source span.
pub fn new(kind: ExpressionKind, span: Span) -> Self {
Self { kind, span }
}
}