mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
Rename: Type::Class -> Type::ClassType
This commit is contained in:
parent
5396b13e6d
commit
b8b6acdf3a
5 changed files with 35 additions and 26 deletions
|
@ -1131,7 +1131,7 @@ impl ASTLowerer {
|
|||
loc,
|
||||
self.ctx.caused_by(),
|
||||
&impl_trait.name(),
|
||||
&Type::Trait,
|
||||
&Type::TraitType,
|
||||
&trait_obj.t(),
|
||||
None,
|
||||
None,
|
||||
|
@ -1359,7 +1359,7 @@ impl ASTLowerer {
|
|||
ast::DefId(0),
|
||||
)?;
|
||||
match t {
|
||||
Type::Class => {
|
||||
Type::ClassType => {
|
||||
let ty_obj = GenTypeObj::new(
|
||||
TypeKind::Class,
|
||||
mono(self.ctx.path(), ident.inspect()),
|
||||
|
@ -1369,7 +1369,7 @@ impl ASTLowerer {
|
|||
);
|
||||
self.ctx.register_gen_type(&ident, ty_obj);
|
||||
}
|
||||
Type::Trait => {
|
||||
Type::TraitType => {
|
||||
let ty_obj = GenTypeObj::new(
|
||||
TypeKind::Trait,
|
||||
mono(self.ctx.path(), ident.inspect()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue