Implement Python class method declarations

This commit is contained in:
Shunsuke Shibayama 2022-09-30 18:21:18 +09:00
parent e4c61392d2
commit 33edcd2e1c
7 changed files with 141 additions and 4 deletions

View file

@ -1455,7 +1455,6 @@ impl CodeGenerator {
log!(info "entered {}", fn_name!());
let class = obj.ref_t().name(); // これは必ずmethodのあるクラスになっている
let uniq_obj_name = obj.__name__().map(Str::rc);
log!("{class} {method_name}");
if &method_name.inspect()[..] == "update!" {
return self.emit_call_update(obj, args);
} else if is_fake_method(&class, method_name.inspect()) {