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

Method register_class

aiscript-vm/src/ty/resolver.rs:70–73  ·  view source on GitHub ↗
(&mut self, name: Token<'gc>)

Source from the content-addressed store, hash-verified

68 }
69
70 pub fn register_class(&mut self, name: Token<'gc>) {
71 self.class_info
72 .insert(name.lexeme, ClassInfo { fields: Vec::new() });
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) {

Callers 1

class_declarationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected