finemark_ast/elements/parameter.rs
1use crate::{Element, Span};
2use indexmap::IndexMap;
3use serde::Serialize;
4
5#[derive(Debug, Clone, Serialize)]
6pub struct Parameter<'i> {
7 #[cfg_attr(not(feature = "include-locations"), serde(skip_serializing))]
8 pub span: Span,
9 pub key: &'i str,
10 pub value: Vec<Element<'i>>,
11}
12
13/// Parameter map that keeps source order while supporting direct key lookup.
14pub type Parameters<'i> = IndexMap<&'i str, Parameter<'i>>;