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)]
11pub struct Function {
12 pub name: String,
13 pub params: Vec<Parameter>,
14 pub body: Block,
15 pub doc: Option<String>,
16 pub debug: Option<FunctionDebug>,
17 pub event: Option<String>,
19 pub event_filter: Option<crate::expression::Expression>,
21}