mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-03 18:29:00 +00:00
chore: add hir::Methods
This commit is contained in:
parent
234fa3ffeb
commit
21c937e633
14 changed files with 109 additions and 64 deletions
|
@ -122,7 +122,7 @@ impl<ASTBuilder: ASTBuildable> GenericASTLowerer<ASTBuilder> {
|
|||
}
|
||||
}
|
||||
hir::Expr::ClassDef(class_def) => {
|
||||
for chunk in class_def.methods.iter() {
|
||||
for chunk in class_def.all_methods() {
|
||||
if let Err(ws) = self.expr_use_check(chunk) {
|
||||
warns.extend(ws);
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ impl<ASTBuilder: ASTBuildable> GenericASTLowerer<ASTBuilder> {
|
|||
}
|
||||
}
|
||||
Expr::ClassDef(class_def) => {
|
||||
for chunk in class_def.methods.iter() {
|
||||
for chunk in class_def.all_methods() {
|
||||
self.check_doc_comment(chunk);
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ impl<ASTBuilder: ASTBuildable> GenericASTLowerer<ASTBuilder> {
|
|||
fn warn_implicit_union_chunk(&mut self, chunk: &Expr) {
|
||||
match chunk {
|
||||
Expr::ClassDef(class_def) => {
|
||||
for chunk in class_def.methods.iter() {
|
||||
for chunk in class_def.all_methods() {
|
||||
self.warn_implicit_union_chunk(chunk);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue