oxcTrait CompilerInterface
Source pub trait CompilerInterface {
Show 25 methods
// Provided methods
fn handle_errors(&mut self, _errors: Vec<OxcDiagnostic>) { ... }
fn enable_sourcemap(&self) -> bool { ... }
fn parse_options(&self) -> ParseOptions { ... }
fn isolated_declaration_options(
&self,
) -> Option<IsolatedDeclarationsOptions> { ... }
fn transform_options(&self) -> Option<TransformOptions> { ... }
fn define_options(&self) -> Option<ReplaceGlobalDefinesConfig> { ... }
fn inject_options(&self) -> Option<InjectGlobalVariablesConfig> { ... }
fn compress_options(&self) -> Option<CompressOptions> { ... }
fn mangle_options(&self) -> Option<MangleOptions> { ... }
fn codegen_options(&self) -> Option<CodegenOptions> { ... }
fn check_semantic_error(&self) -> bool { ... }
fn semantic_child_scope_ids(&self) -> bool { ... }
fn after_parse(
&mut self,
_parser_return: &mut ParserReturn<'_>,
) -> ControlFlow<()> { ... }
fn after_semantic(
&mut self,
_program: &mut Program<'_>,
_semantic_return: &mut SemanticBuilderReturn<'_>,
) -> ControlFlow<()> { ... }
fn after_isolated_declarations(&mut self, _ret: CodegenReturn) { ... }
fn after_transform(
&mut self,
_program: &mut Program<'_>,
_transformer_return: &mut TransformerReturn,
) -> ControlFlow<()> { ... }
fn after_codegen(&mut self, _ret: CodegenReturn) { ... }
fn compile(
&mut self,
source_text: &str,
source_type: SourceType,
source_path: &Path,
) { ... }
fn parse<'a>(
&self,
allocator: &'a Allocator,
source_text: &'a str,
source_type: SourceType,
) -> ParserReturn<'a> { ... }
fn semantic<'a>(
&self,
program: &Program<'a>,
source_path: &Path,
) -> SemanticBuilderReturn<'a> { ... }
fn isolated_declaration<'a>(
&mut self,
options: IsolatedDeclarationsOptions,
allocator: &'a Allocator,
program: &Program<'a>,
source_path: &Path,
) { ... }
fn transform<'a>(
&self,
options: TransformOptions,
allocator: &'a Allocator,
program: &mut Program<'a>,
source_path: &Path,
symbols: SymbolTable,
scopes: ScopeTree,
) -> TransformerReturn { ... }
fn compress<'a>(
&self,
allocator: &'a Allocator,
program: &mut Program<'a>,
options: CompressOptions,
) { ... }
fn mangle(
&self,
program: &mut Program<'_>,
options: MangleOptions,
) -> Mangler { ... }
fn codegen(
&self,
program: &Program<'_>,
source_path: &Path,
mangler: Option<Mangler>,
options: CodegenOptions,
) -> CodegenReturn { ... }
}