mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
Add builder & linker
This commit is contained in:
parent
671fbee518
commit
201b313cd2
19 changed files with 241 additions and 109 deletions
|
@ -2839,6 +2839,7 @@ pub enum DefKind {
|
|||
Trait,
|
||||
Subsume,
|
||||
StructuralTrait,
|
||||
Module,
|
||||
Other,
|
||||
}
|
||||
|
||||
|
@ -2846,6 +2847,10 @@ impl DefKind {
|
|||
pub const fn is_trait(&self) -> bool {
|
||||
matches!(self, Self::Trait | Self::Subsume | Self::StructuralTrait)
|
||||
}
|
||||
|
||||
pub fn is_module(&self) -> bool {
|
||||
matches!(self, Self::Module)
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue