1use crate::{block::Block, debug::FunctionDebug, r#type::Type};
2
3#[derive(Debug, Clone, PartialEq, Eq)]
4pub struct Parameter {
5 pub name: String,
6 pub r#type: Type,
7 pub source_type: Option<String>,
8}
9
10#[derive(Debug, Clone, PartialEq, Eq)]
12pub struct ExportMeta {
13 pub interface: Option<String>,
16}
17
18#[derive(Debug, Clone, PartialEq)]
19pub struct Function {
20 pub name: String,
21 pub params: Vec<Parameter>,
22 pub body: Block,
23 pub doc: Option<String>,
24 pub debug: Option<FunctionDebug>,
25 pub event: Option<String>,
27 pub event_filter: Option<crate::expression::Expression>,
29 pub export: Option<ExportMeta>,
31}