(&mut self, class_name: &'gc str, field: ClassField<'gc>)
| 73 | } |
| 74 | |
| 75 | pub fn add_class_field(&mut self, class_name: &'gc str, field: ClassField<'gc>) { |
| 76 | if let Some(info) = self.class_info.get_mut(class_name) { |
| 77 | info.fields.push(field); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // Check the token whether a registerd class or not. |
| 82 | pub fn check_class(&mut self, token: &Token<'gc>) -> bool { |