mirror of
https://github.com/mtshiba/pylyzer.git
synced 2025-08-04 06:18:18 +00:00
update deps & fix
This commit is contained in:
parent
eafc5f97fa
commit
2bfb4cbc6a
2 changed files with 11 additions and 10 deletions
|
@ -1052,11 +1052,12 @@ impl ASTConverter {
|
|||
body: Vec<Located<StatementType>>,
|
||||
) -> (Option<Expr>, Vec<Methods>) {
|
||||
let class = TypeSpec::PreDeclTy(PreDeclTypeSpec::Simple(SimpleTypeSpec::new(
|
||||
ident,
|
||||
ident.clone(),
|
||||
ConstArgs::empty(),
|
||||
)));
|
||||
let class_as_expr = Expr::Accessor(Accessor::Ident(ident));
|
||||
let (base_type, attrs) = self.extract_method(body);
|
||||
let methods = Methods::new(class, DOT, attrs);
|
||||
let methods = Methods::new(class, class_as_expr, DOT, attrs);
|
||||
(base_type, vec![methods])
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue