oxc

Trait 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 { ... }
}

Provided Methods§

Source

fn handle_errors(&mut self, _errors: Vec<OxcDiagnostic>)

Source

fn enable_sourcemap(&self) -> bool

Source

fn parse_options(&self) -> ParseOptions

Source

fn isolated_declaration_options(&self) -> Option<IsolatedDeclarationsOptions>

Source

fn transform_options(&self) -> Option<TransformOptions>

Source

fn define_options(&self) -> Option<ReplaceGlobalDefinesConfig>

Source

fn inject_options(&self) -> Option<InjectGlobalVariablesConfig>

Source

fn compress_options(&self) -> Option<CompressOptions>

Source

fn mangle_options(&self) -> Option<MangleOptions>

Source

fn codegen_options(&self) -> Option<CodegenOptions>

Source

fn check_semantic_error(&self) -> bool

Source

fn semantic_child_scope_ids(&self) -> bool

Source

fn after_parse( &mut self, _parser_return: &mut ParserReturn<'_>, ) -> ControlFlow<()>

Source

fn after_semantic( &mut self, _program: &mut Program<'_>, _semantic_return: &mut SemanticBuilderReturn<'_>, ) -> ControlFlow<()>

Source

fn after_isolated_declarations(&mut self, _ret: CodegenReturn)

Source

fn after_transform( &mut self, _program: &mut Program<'_>, _transformer_return: &mut TransformerReturn, ) -> ControlFlow<()>

Source

fn after_codegen(&mut self, _ret: CodegenReturn)

Source

fn compile( &mut self, source_text: &str, source_type: SourceType, source_path: &Path, )

Source

fn parse<'a>( &self, allocator: &'a Allocator, source_text: &'a str, source_type: SourceType, ) -> ParserReturn<'a>

Source

fn semantic<'a>( &self, program: &Program<'a>, source_path: &Path, ) -> SemanticBuilderReturn<'a>

Source

fn isolated_declaration<'a>( &mut self, options: IsolatedDeclarationsOptions, allocator: &'a Allocator, program: &Program<'a>, source_path: &Path, )

Source

fn transform<'a>( &self, options: TransformOptions, allocator: &'a Allocator, program: &mut Program<'a>, source_path: &Path, symbols: SymbolTable, scopes: ScopeTree, ) -> TransformerReturn

Source

fn compress<'a>( &self, allocator: &'a Allocator, program: &mut Program<'a>, options: CompressOptions, )

Source

fn mangle(&self, program: &mut Program<'_>, options: MangleOptions) -> Mangler

Source

fn codegen( &self, program: &Program<'_>, source_path: &Path, mangler: Option<Mangler>, options: CodegenOptions, ) -> CodegenReturn

Implementors§