Add async for

This commit is contained in:
coolreader18 committed 2019-11-07 00:04:51 -06:00
1 parent 960e8def4a
commit 6bc33fbca2
4 files changed
+122 -33

No files matched your search

+5
View File
@@ -278,6 +278,8 @@ pub enum Instruction {
SetupAsyncWith {
end: Label,
},
GetAIter,
GetANext,
}
use self::Instruction::*;
@@ -315,6 +317,7 @@ pub enum ComparisonOperator {
NotIn,
Is,
IsNot,
ExceptionMatch,
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
@@ -558,6 +561,8 @@ impl Instruction {
PopException => w!(PopException),
Reverse { amount } => w!(Reverse, amount),
GetAwaitable => w!(GetAwaitable),
GetAIter => w!(GetAIter),
GetANext => w!(GetANext),
}
}
}