mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
feat(transformer): add CompilerAssumptions to TransformContext (#7369)
This commit is contained in:
parent
b3965bbff0
commit
6a98ef1a0c
1 changed files with 5 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ use crate::{
|
|||
statement_injector::StatementInjectorStore, top_level_statements::TopLevelStatementsStore,
|
||||
var_declarations::VarDeclarationsStore,
|
||||
},
|
||||
Module, TransformOptions,
|
||||
CompilerAssumptions, Module, TransformOptions,
|
||||
};
|
||||
|
||||
pub struct TransformCtx<'a> {
|
||||
|
|
@ -31,6 +31,9 @@ pub struct TransformCtx<'a> {
|
|||
|
||||
pub module: Module,
|
||||
|
||||
#[expect(dead_code)]
|
||||
pub assumptions: CompilerAssumptions,
|
||||
|
||||
// Helpers
|
||||
/// Manage helper loading
|
||||
pub helper_loader: HelperLoaderStore<'a>,
|
||||
|
|
@ -61,6 +64,7 @@ impl<'a> TransformCtx<'a> {
|
|||
source_type: SourceType::default(),
|
||||
source_text: "",
|
||||
module: options.env.module,
|
||||
assumptions: options.assumptions,
|
||||
helper_loader: HelperLoaderStore::new(&options.helper_loader),
|
||||
module_imports: ModuleImportsStore::new(),
|
||||
var_declarations: VarDeclarationsStore::new(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue