refactor(semantic): re-order SymbolTable fields (#4459)

Group the fields which are SoA indexed by `ScopeId` together.
This commit is contained in:
overlookmotel 2024-07-25 14:38:36 +00:00
parent e4ca06ae8c
commit a49f4915de

View file

@ -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 {