mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: add rsimport
This commit is contained in:
parent
ebf803dab0
commit
e4a3bc1720
9 changed files with 28 additions and 4 deletions
|
@ -1491,6 +1491,7 @@ impl Call {
|
|||
self.obj.show_acc().and_then(|s| match &s[..] {
|
||||
"import" => Some(OperationKind::Import),
|
||||
"pyimport" | "py" | "__import__" => Some(OperationKind::PyImport),
|
||||
"rsimport" => Some(OperationKind::RsImport),
|
||||
"Del" => Some(OperationKind::Del),
|
||||
"assert" => Some(OperationKind::Assert),
|
||||
_ => {
|
||||
|
@ -2274,6 +2275,7 @@ impl Def {
|
|||
Some("Patch") => DefKind::Patch,
|
||||
Some("import") => DefKind::ErgImport,
|
||||
Some("pyimport") | Some("__import__") => DefKind::PyImport,
|
||||
Some("rsimport") => DefKind::RsImport,
|
||||
#[cfg(feature = "debug")]
|
||||
Some("py") => DefKind::PyImport,
|
||||
_ => DefKind::Other,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue