mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
fix(traverse): set ScopeFlags::Function bit for class methods (#3277)
This commit is contained in:
parent
6fd7a3c427
commit
65540c0118
1 changed files with 4 additions and 4 deletions
|
|
@ -2588,10 +2588,10 @@ impl MethodDefinitionKind {
|
|||
|
||||
pub fn scope_flags(self) -> ScopeFlags {
|
||||
match self {
|
||||
Self::Constructor => ScopeFlags::Constructor,
|
||||
Self::Method => ScopeFlags::empty(),
|
||||
Self::Get => ScopeFlags::GetAccessor,
|
||||
Self::Set => ScopeFlags::SetAccessor,
|
||||
Self::Constructor => ScopeFlags::Constructor | ScopeFlags::Function,
|
||||
Self::Method => ScopeFlags::Function,
|
||||
Self::Get => ScopeFlags::GetAccessor | ScopeFlags::Function,
|
||||
Self::Set => ScopeFlags::SetAccessor | ScopeFlags::Function,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue