mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
chore: VarInfo.impl_of: Option<Type> -> ctx: ContextKind
This commit is contained in:
parent
1a056b1b0e
commit
14729c94f4
10 changed files with 101 additions and 84 deletions
|
@ -800,13 +800,13 @@ impl CodeObj {
|
|||
| CommonOpcode::LOAD_METHOD
|
||||
| CommonOpcode::IMPORT_NAME
|
||||
| CommonOpcode::IMPORT_FROM => {
|
||||
write!(instrs, "{arg} ({})", self.names.get(arg).unwrap()).unwrap();
|
||||
write!(instrs, "{arg} ({})", self.names[arg]).unwrap();
|
||||
}
|
||||
CommonOpcode::STORE_FAST | CommonOpcode::LOAD_FAST => {
|
||||
write!(instrs, "{arg} ({})", self.varnames.get(arg).unwrap()).unwrap();
|
||||
write!(instrs, "{arg} ({})", self.varnames[arg]).unwrap();
|
||||
}
|
||||
CommonOpcode::LOAD_CONST => {
|
||||
write!(instrs, "{arg} ({})", self.consts.get(arg).unwrap()).unwrap();
|
||||
write!(instrs, "{arg} ({})", self.consts[arg]).unwrap();
|
||||
}
|
||||
CommonOpcode::FOR_ITER => {
|
||||
write!(instrs, "{arg} (to {})", idx + arg * 2 + 2).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue