leo/leo-inputs/src/expressions/array_initializer_expression.rs

14 lines
387 B
Rust
Raw Normal View History

use crate::{ast::Rule, expressions::Expression, values::NumberValue};
2020-06-09 00:07:06 +03:00
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: NumberValue<'ast>,
2020-06-09 00:07:06 +03:00
#[pest_ast(outer())]
pub span: Span<'ast>,
}