Skip to content

Commit

Permalink
refactor(semantic): re-order SymbolTable fields (#4459)
Browse files Browse the repository at this point in the history
Group the fields which are SoA indexed by `ScopeId` together.
  • Loading branch information
overlookmotel committed Jul 25, 2024
1 parent e4ca06a commit a49f491
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/oxc_semantic/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ pub struct SymbolTable {
/// Pointer to the AST Node where this symbol is declared
pub declarations: IndexVec<SymbolId, AstNodeId>,
pub resolved_references: IndexVec<SymbolId, Vec<ReferenceId>>,
pub references: IndexVec<ReferenceId, Reference>,
pub redeclare_variables: IndexVec<SymbolId, Vec<Span>>,

pub references: IndexVec<ReferenceId, Reference>,
}

impl SymbolTable {
Expand Down

0 comments on commit a49f491

Please sign in to comment.