Skip to content

Commit

Permalink
Fix(binder): function is value
Browse files Browse the repository at this point in the history
  • Loading branch information
ShuiRuTian committed Nov 21, 2024
1 parent c587dd3 commit 266b1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_syntax/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bitflags! {

const BlockScoped = Self::BlockScopedVariable.bits() | Self::Enum.bits() | Self::Class.bits();

const Value = Self::Variable.bits() | Self::Class.bits() | Self::Enum.bits() | Self::EnumMember.bits() | Self::ValueModule.bits();
const Value = Self::Variable.bits() | Self::Function.bits() | Self::Class.bits() | Self::Enum.bits() | Self::EnumMember.bits() | Self::ValueModule.bits();
const Type = Self::Class.bits() | Self::Interface.bits() | Self::Enum.bits() | Self::EnumMember.bits() | Self::TypeLiteral.bits() | Self::TypeParameter.bits() | Self::TypeAlias.bits();

/// Variables can be redeclared, but can not redeclare a block-scoped declaration with the
Expand Down

0 comments on commit 266b1bb

Please sign in to comment.