mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 20:34:44 +00:00
Create declare
mod
This commit is contained in:
parent
a805b1ed72
commit
f3a7d26e71
5 changed files with 349 additions and 301 deletions
|
@ -25,6 +25,10 @@ pub enum OperationKind {
|
|||
PyImport,
|
||||
Del,
|
||||
AssertCast,
|
||||
Class,
|
||||
Inherit,
|
||||
Trait,
|
||||
Subsume,
|
||||
}
|
||||
|
||||
impl OperationKind {
|
||||
|
@ -1106,6 +1110,10 @@ impl Call {
|
|||
"import" => Some(OperationKind::Import),
|
||||
"pyimport" | "py" | "__import__" => Some(OperationKind::PyImport),
|
||||
"Del" => Some(OperationKind::Del),
|
||||
"Class" => Some(OperationKind::Class),
|
||||
"Inherit" => Some(OperationKind::Inherit),
|
||||
"Trait" => Some(OperationKind::Trait),
|
||||
"Subsume" => Some(OperationKind::Subsume),
|
||||
_ => None,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue