We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89b077a commit c9c4cdcCopy full SHA for c9c4cdc
lib/src/types.rs
@@ -3,23 +3,23 @@ use std::fmt::Display;
3
4
#[derive(Debug, Clone, Deserialize, Serialize)]
5
pub struct Class {
6
- pub(crate) name: String,
7
- pub(crate) fields: Vec<FieldDecl>,
8
- pub(crate) methods: Vec<MethodDecl>,
+ pub name: String,
+ pub fields: Vec<FieldDecl>,
+ pub methods: Vec<MethodDecl>,
9
}
10
11
12
pub struct FieldDecl {
13
- pub(crate) field_type: Type,
14
+ pub field_type: Type,
15
16
17
18
pub struct MethodDecl {
19
- pub(crate) retType: Type,
20
21
- pub(crate) params: Vec<(Type, String)>,
22
- pub(crate) body: Stmt,
+ pub retType: Type,
+ pub params: Vec<(Type, String)>,
+ pub body: Stmt,
23
24
25
0 commit comments