class

Mint::Compiler::Renderer

Inherits Reference < Object

This class is responsible to render Compiled code.

Constructors

Instance methods

append(io : IO, value : String | Char)
Source
asset_path

A method to get the path of an asset.

Source
base

The current bundle.

Source
bundles

The bundles which we use to get their filename.

Source
class_pool

The pool for class variables (uppercase).

Source
column

The current column.

Source
column=(column : Int32)

The current column.

Source
deferred_path

A method to get the deferred path of a bundle.

Source
depth

The current indentation depth.

Source
depth=(depth : Int32)

The current indentation depth.

Source
exported

The exported entities.

Source
generate_source_maps?

Whether or not to generate source map mappings.

Source
last_line

The last line index.

Source
last_line=(last_line : Int32)

The last line index.

Source
line

The current line.

Source
line=(line : Int32)

The current line.

Source
mappings
Source
mappings=(mappings : Deque(Mapping))
Source
pool

The pool for variables (lowercase).

Source
render(items : Compiled, io : IO) : Nil
Source
render(items : Compiled) : String
Source
render(item : Item, io : IO = IO::Memory.new)

We are using a string builder to build the final compiled code.

Source
stack

A mapping and stack for generating source maps. We use Deque because we push and pop to the stack frequently.

Source
stack=(stack : Deque(Ast::Node))

A mapping and stack for generating source maps. We use Deque because we push and pop to the stack frequently.

Source

Nested types