mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Add annotation setup
This commit is contained in:
1 parent
3945c31f4f
commit
a310f3c245
3 files changed
+23
-23
No files matched your search
@@ -205,6 +205,7 @@ pub enum Instruction {
|
||||
ReturnValue,
|
||||
YieldValue,
|
||||
YieldFrom,
|
||||
SetupAnnotation,
|
||||
SetupLoop {
|
||||
start: Label,
|
||||
end: Label,
|
||||
@@ -570,6 +571,7 @@ impl Instruction {
|
||||
ReturnValue => w!(ReturnValue),
|
||||
YieldValue => w!(YieldValue),
|
||||
YieldFrom => w!(YieldFrom),
|
||||
SetupAnnotation => w!(SetupAnnotation),
|
||||
SetupLoop { start, end } => w!(SetupLoop, label_map[start], label_map[end]),
|
||||
SetupExcept { handler } => w!(SetupExcept, label_map[handler]),
|
||||
SetupFinally { handler } => w!(SetupFinally, label_map[handler]),
|
||||
|
||||
Reference in new issue
Block a user