class SourceMap::Parser

Included Modules

Defined in:

sourcemap_parser/source_map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(version : Int32, sources : Array(String), names : Array(String), file : String, mappings : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.from_file(file : String) #

[View source]
def self.from_string(string : String) #

[View source]

Instance Method Detail

def after_initialize #

[View source]
def file : String #

[View source]
def mapping_for(generated_line : Int32, generated_column : Int32) : Mapping | Nil #

Retrieve a Mapping for a specific line and column in the generated code


[View source]
def mapping_with_less_column_for(generated_line : Int32, generated_column : Int32 | Nil, start_column : Int32 = 1) : Mapping | Nil #

[View source]
def mapping_with_source_path_for(generated_line : Int32, generated_column : Int32) : Mapping | Nil #

Retrieve a mapping for a specific line in the generated code and with source_path


[View source]
def mappings : String #

[View source]
def mappings_for_source(source_path : String) : Array(Mapping) #

Retrieve all mappings for a specific source path


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

[View source]
def parse_mapping(segment, line_num) : Mapping #

[View source]
def parse_mappings(string) : Array(Mapping) #

[View source]
def parsed_mappings : Array(Mapping) #

[View source]
def previous : Hash(String, Int32) #

[View source]
def previous=(previous : Hash(String, Int32)) #

[View source]
def sourcemap_uri : URI #

[View source]
def sourcemap_uri=(sourcemap_uri : URI) #

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

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

[View source]
def undiff(int, type) #

[View source]
def version : Int32 #

[View source]