protospec_build/asg/
const_declaration.rs

1use super::*;
2
3#[derive(PartialEq, Debug)]
4pub struct Const {
5    pub name: String,
6    pub type_: Type,
7    pub span: Span,
8    pub value: Expression,
9}
10
11impl AsgExpression for Const {
12    fn get_type(&self) -> Option<Type> {
13        Some(self.type_.clone())
14    }
15}