class

SourceMap::Parser

Inherits JSON::Serializable < Reference < Object

Constructors

new(version : Int32, sources : Array(String), names : Array(String), file : String, mappings : String)
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

from_file(file : String)
Source
from_string(string : String)
Source

Instance methods

after_initialize
Source
file
Source
mapping_for(generated_line : Int32, generated_column : Int32) : Mapping | Nil

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

Source
mapping_with_less_column_for(generated_line : Int32, generated_column : Int32 | Nil, start_column : Int32 = 1) : Mapping | Nil
Source
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

Source
mappings
Source
mappings_for_source(source_path : String) : Array(Mapping)

Retrieve all mappings for a specific source path

Source
names
Source
parse_mapping(segment, line_num) : Mapping
Source
parse_mappings(string) : Array(Mapping)
Source
parsed_mappings
Source
previous
Source
previous=(previous : Hash(String, Int32))
Source
sourcemap_uri
Source
sourcemap_uri=(sourcemap_uri : URI)
Source
sources
Source
sources_content
Source
undiff(int, type)
Source
version
Source