mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
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:
parent
ee26b448cc
commit
b9322c68e6
1 changed files with 5 additions and 2 deletions
|
|
@ -12,7 +12,10 @@ use oxc_ast::{
|
||||||
};
|
};
|
||||||
use oxc_cfg::ControlFlowGraph;
|
use oxc_cfg::ControlFlowGraph;
|
||||||
use oxc_span::{GetSpan, SourceType, Span};
|
use oxc_span::{GetSpan, SourceType, Span};
|
||||||
|
// Re-export flags and ID types
|
||||||
pub use oxc_syntax::{
|
pub use oxc_syntax::{
|
||||||
|
node::{NodeFlags, NodeId},
|
||||||
|
reference::{ReferenceFlags, ReferenceId},
|
||||||
scope::{ScopeFlags, ScopeId},
|
scope::{ScopeFlags, ScopeId},
|
||||||
symbol::{SymbolFlags, SymbolId},
|
symbol::{SymbolFlags, SymbolId},
|
||||||
};
|
};
|
||||||
|
|
@ -38,8 +41,8 @@ use class::ClassTable;
|
||||||
pub use crate::{
|
pub use crate::{
|
||||||
builder::{SemanticBuilder, SemanticBuilderReturn},
|
builder::{SemanticBuilder, SemanticBuilderReturn},
|
||||||
jsdoc::{JSDoc, JSDocFinder, JSDocTag},
|
jsdoc::{JSDoc, JSDocFinder, JSDocTag},
|
||||||
node::{AstNode, AstNodes, NodeId},
|
node::{AstNode, AstNodes},
|
||||||
reference::{Reference, ReferenceFlags, ReferenceId},
|
reference::Reference,
|
||||||
scope::ScopeTree,
|
scope::ScopeTree,
|
||||||
stats::Stats,
|
stats::Stats,
|
||||||
symbol::{IsGlobalReference, SymbolTable},
|
symbol::{IsGlobalReference, SymbolTable},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue