feat(semantic): re-export all flags and ID types (#7886)

`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.
This commit is contained in:
overlookmotel 2024-12-14 14:48:27 +00:00
parent ee26b448cc
commit b9322c68e6

View file

@ -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},
};
@ -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},