MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / add_class_field

Method add_class_field

aiscript-vm/src/ty/resolver.rs:75–79  ·  view source on GitHub ↗
(&mut self, class_name: &'gc str, field: ClassField<'gc>)

Source from the content-addressed store, hash-verified

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 {

Callers 1

class_declarationMethod · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected