Skip to content

Commit

Permalink
feat(semantic): re-export all flags and ID types (#7886)
Browse files Browse the repository at this point in the history
`oxc_semantic` already re-exports `ScopeId`, `ScopeFlags`, `SymbolId` and `SymbolFlags` from `oxc_syntax`. It seems inconsistent that it doesn't also re-export `ReferenceId`, `ReferenceFlags`, `NodeId` and `NodeFlags` too. Do that.
  • Loading branch information
overlookmotel committed Dec 14, 2024
1 parent ee26b44 commit b9322c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/oxc_semantic/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ use oxc_ast::{
};
use oxc_cfg::ControlFlowGraph;
use oxc_span::{GetSpan, SourceType, Span};
// Re-export flags and ID types
pub use oxc_syntax::{
node::{NodeFlags, NodeId},
reference::{ReferenceFlags, ReferenceId},
scope::{ScopeFlags, ScopeId},
symbol::{SymbolFlags, SymbolId},
};
Expand All @@ -38,8 +41,8 @@ use class::ClassTable;
pub use crate::{
builder::{SemanticBuilder, SemanticBuilderReturn},
jsdoc::{JSDoc, JSDocFinder, JSDocTag},
node::{AstNode, AstNodes, NodeId},
reference::{Reference, ReferenceFlags, ReferenceId},
node::{AstNode, AstNodes},
reference::Reference,
scope::ScopeTree,
stats::Stats,
symbol::{IsGlobalReference, SymbolTable},
Expand Down

0 comments on commit b9322c6

Please sign in to comment.