jetcrab\ast\statements/
variable.rs1use crate::ast::common::Span;
2use serde::{Deserialize, Serialize};
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct VariableDeclaration {
6 pub kind: String,
7 pub declarations: Vec<VariableDeclarator>,
8 pub span: Option<Span>,
9}
10
11#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
12pub struct VariableDeclarator {
13 pub id: Box<crate::ast::node::Node>,
14 pub init: Option<Box<crate::ast::node::Node>>,
15 pub span: Option<Span>,
16}