Crate sway_core Copy item path Source pub use asm_generation::from_ir::compile_ir_context_to_finalized_asm ;
pub use asm_generation::CompiledBytecode ;
pub use asm_generation::FinalizedEntry ;
pub use semantic_analysis::namespace ;
pub use semantic_analysis::namespace::Namespace ;
pub use language::Programs ;
pub use engine_threading::Engines ;
pub use type_system ::*;
abi_generation asm_generation compiler_generated This module encapsulates generation of various elements generated internally by the compiler,
e.g., unique names of variables in desugared code and similar.
It also provides functions for inspecting such generated elements. decl_engine The DeclEngine allows the compiler to add a layer of
separation between AST nodes and
declarations. engine_threading error Tools related to handling/recovering from Sway compile errors and reporting them to the user. fuel_prelude ir_generation language query_engine semantic_analysis Type checking for Sway. source_map transform type_system types has_changes BuildConfig Configuration for the overall build and compilation process. CompiledAsm LspConfig ParsedModuleTree PrintAsm Which ASM to print. PrintIr Which IR states to print. Submodule BuildTarget OptLevel PRELUDE_CONFIGURABLES_OFFSET_IN_BYTES Offset (in bytes) of the CONFIGURABLES_OFFSET section in the prelude. PRELUDE_CONFIGURABLES_SIZE_IN_BYTES Size of the prelude’s CONFIGURABLES_OFFSET section, in bytes. PRELUDE_SIZE_IN_BYTES Total size of the prelude in bytes. Instructions start right after. asm_to_bytecode Given the assembly (opcodes), compile to CompiledBytecode , containing the asm in bytecode form. ast_to_asm Given an AST compilation result, try compiling to a CompiledAsm
,
containing the asm in opcode form (not raw bytes/bytecode). build_module_dep_graph compile_to_asm Given input Sway source code, try compiling to a CompiledAsm
,
containing the asm in opcode form (not raw bytes/bytecode). compile_to_ast compile_to_bytecode Given input Sway source code, compile to CompiledBytecode , containing the asm in bytecode form. parse Given an input Arc<str>
and an optional BuildConfig , parse the input into a lexed::LexedProgram and parsed::ParseProgram . parse_tree_type Parses the tree kind in the input provided. parsed_to_ast set_bytecode_configurables_offset Given bytecode, overwrite the existing offset to configurables offset in the prelude with the given one. write_dwarf SourceHash Submodules Contains the lexed and parsed submodules ‘deps’ of a module.