oak_objective_c/ast/
mod.rs1#![doc = include_str!("readme.md")]
2
3#[derive(Debug, Clone, PartialEq)]
5#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
6pub struct ObjectiveCRoot {
7 pub items: Vec<ObjectiveCItem>,
9}
10
11#[derive(Debug, Clone, PartialEq)]
13#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
14pub enum ObjectiveCItem {
15 Interface,
17 Implementation,
19 Protocol,
21 Function,
23 Variable,
25 Import,
27}
28
29impl Default for ObjectiveCRoot {
30 fn default() -> Self {
31 Self { items: Vec::new() }
32 }
33}