xshade_parser/ast/expressions/
struct_instantiation_expression.rs

1use ::ast::*;
2
3#[derive(Debug, Eq, PartialEq, Serialize, Deserialize)]
4pub struct StructInstantiationExpression {
5    pub span: Span,
6    pub struct_type_name: TypeIdentifier,
7    pub struct_field_initializer: Vec<StructFieldInitializerExpression>,
8}
9
10impl Spanned for StructInstantiationExpression {
11    fn get_span(&self) -> Span {
12        self.span
13    }
14}
15
16impl Execute for StructInstantiationExpression {
17    fn execute(&self) -> Option<i32> {
18        None
19    }
20}