slicec/grammar/elements/
parameter.rs1use super::super::*;
4use crate::slice_file::Span;
5use crate::utils::ptr_util::WeakPtr;
6
7#[derive(Debug)]
8pub struct Parameter {
9 pub identifier: Identifier,
10 pub data_type: TypeRef,
11 pub tag: Option<Integer<u32>>,
12 pub is_streamed: bool,
13 pub parent: WeakPtr<Operation>,
14 pub scope: Scope,
15 pub attributes: Vec<WeakPtr<Attribute>>,
16 pub span: Span,
17}
18
19implement_Element_for!(Parameter, "parameter");
20implement_Attributable_for!(@Contained Parameter);
21implement_Entity_for!(Parameter);
22implement_Contained_for!(Parameter, Operation);
23implement_Member_for!(Parameter);