class Mint::SourceMapGenerator

Overview

This class is responsible for generating a source map.

Defined in:

utils/source_map_generator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(unsorted : Deque(Mapping), generated : String) #

[View source]

Instance Method Detail

def generate : String #

[View source]
def generated : String #

The generate JavaScript file.


[View source]
def get_source_index(file) #

[View source]
def get_source_name_index(value) #

[View source]
def mappings : Hash(Int32, Array({Mint::Ast::Node?, {Int32, Int32}, String?})) #

The line mappings.


[View source]
def source_names : Array(String) #

The source names for the mappings.


[View source]
def sources : Array(String) #

The filenames of the sources.


[View source]
def sources_content : Array(String) #

The actual content of the sources.


[View source]