mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
14 lines
375 B
Rust
14 lines
375 B
Rust
|
use crate::{ast::Rule, expressions::Expression, values::Value};
|
||
|
|
||
|
use pest::Span;
|
||
|
use pest_ast::FromPest;
|
||
|
|
||
|
#[derive(Clone, Debug, FromPest, PartialEq)]
|
||
|
#[pest_ast(rule(Rule::expression_array_initializer))]
|
||
|
pub struct ArrayInitializerExpression<'ast> {
|
||
|
pub expression: Box<Expression<'ast>>,
|
||
|
pub count: Value<'ast>,
|
||
|
#[pest_ast(outer())]
|
||
|
pub span: Span<'ast>,
|
||
|
}
|