SourceMap::Parser
Inherits JSON::Serializable < Reference < Object
Constructors
new(version : Int32, sources : Array(String), names : Array(String), file : String, mappings : String)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
from_file(file : String)
Sourcefrom_string(string : String)
SourceInstance methods
after_initialize
Sourcefile
Sourcemapping_for(generated_line : Int32, generated_column : Int32) : Mapping | Nil
Retrieve a Mapping for a specific line and column in the generated code
mapping_with_less_column_for(generated_line : Int32, generated_column : Int32 | Nil, start_column : Int32 = 1) : Mapping | Nil
Sourcemapping_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
mappings
Sourcemappings_for_source(source_path : String) : Array(Mapping)
Retrieve all mappings for a specific source path
names
Sourceparse_mapping(segment, line_num) : Mapping
Sourceparse_mappings(string) : Array(Mapping)
Sourceparsed_mappings
Sourceprevious
Sourceprevious=(previous : Hash(String, Int32))
Sourcesourcemap_uri
Sourcesourcemap_uri=(sourcemap_uri : URI)
Sourcesources
Sourcesources_content
Sourceundiff(int, type)
Sourceversion
Source