Mint::Compiler::Renderer
This class is responsible to render Compiled code.
Constructors
new(*, generate_source_maps : Bool, deferred_path : Mint::Compiler::Bundle | Set(Mint::Ast::Node) -> String, class_pool : Mint::NamePool(Mint::Ast::Node | Mint::Compiler::Builtin | Mint::Compiler::Tag, Mint::Compiler::Bundle | Set(Mint::Ast::Node)), asset_path : Mint::Ast::Node -> String, exported : Set(Mint::Ast::Node), bundles : Hash(Mint::Compiler::Bundle | Set(Mint::Ast::Node), Set(Mint::Ast::Node)), pool : Mint::NamePool(Mint::Ast::Node | Mint::Compiler::Decoder | Mint::Compiler::Encoder | Mint::Compiler::Record | Mint::Compiler::Size | Mint::Compiler::Variable | String, Mint::Compiler::Bundle | Set(Mint::Ast::Node)), base : Mint::Compiler::Bundle | Set(Mint::Ast::Node))
SourceInstance methods
mappings
SourceWe are using a string builder to build the final compiled code.
stack
A mapping and stack for generating source maps. We use Deque because
we push and pop to the stack frequently.