mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Update lower.rs
This commit is contained in:
parent
8a7469cb09
commit
e7d82ecf4a
1 changed files with 6 additions and 1 deletions
|
@ -1291,7 +1291,12 @@ impl ASTLowerer {
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
let kind = ContextKind::MethodDefs(impl_trait.as_ref().map(|(t, _)| t.clone()));
|
let kind = ContextKind::MethodDefs(impl_trait.as_ref().map(|(t, _)| t.clone()));
|
||||||
self.ctx.grow(&class.local_name(), kind, Private, None);
|
let vis = if self.cfg.python_compatible_mode {
|
||||||
|
Public
|
||||||
|
} else {
|
||||||
|
Private
|
||||||
|
};
|
||||||
|
self.ctx.grow(&class.local_name(), kind, vis, None);
|
||||||
for attr in methods.attrs.iter_mut() {
|
for attr in methods.attrs.iter_mut() {
|
||||||
match attr {
|
match attr {
|
||||||
ast::ClassAttr::Def(def) => {
|
ast::ClassAttr::Def(def) => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue