Add some constants to native modules

This commit is contained in:
coolreader18 committed 2019-11-16 22:58:51 -06:00
1 parent 5ca0e9a927
commit bed54e035c
8 files changed
+84 -23

No files matched your search

+7
View File
@@ -65,6 +65,13 @@ impl Default for CodeFlags {
}
}
impl CodeFlags {
pub const NAME_MAPPING: &'static [(&'static str, CodeFlags)] = &[
("GENERATOR", CodeFlags::IS_GENERATOR),
("COROUTINE", CodeFlags::IS_COROUTINE),
];
}
#[derive(Serialize, Debug, Deserialize, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Label(usize);