avm1_tree/
cfg_actions.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
4#[serde(rename_all = "snake_case")]
5pub struct CfgDefineFunction {
6  pub name: String,
7  pub parameters: Vec<String>,
8  pub body: super::Cfg,
9}
10
11#[derive(Serialize, Deserialize, Debug, PartialEq, Eq)]
12#[serde(rename_all = "snake_case")]
13pub struct CfgDefineFunction2 {
14  // Empty string if anonymous
15  pub name: String,
16  pub register_count: u8,
17  pub preload_this: bool,
18  pub suppress_this: bool,
19  pub preload_arguments: bool,
20  pub suppress_arguments: bool,
21  pub preload_super: bool,
22  pub suppress_super: bool,
23  pub preload_root: bool,
24  pub preload_parent: bool,
25  pub preload_global: bool,
26  pub parameters: Vec<crate::actions::define_function2::Parameter>,
27  pub body: super::Cfg,
28}