struct SourceMap::Mapping

Defined in:

sourcemap_parser/mapping.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(generated_line : Int32, generated_column : Int32, source_path : String | Nil = nil, source_line : Int32 = 0, source_column : Int32 = 0, name : String | Nil = nil) #

Using default values to reduce the number of initializers


[View source]

Instance Method Detail

def context_line(context_line_no : Int32) : String | Nil #

[View source]
def generated_column : Int32 #

[View source]
def generated_line : Int32 #

[View source]
def is_part_of_app? : Bool #

Returns true if the mapping is part of the app code so not from node_modules


[View source]
def name : String | Nil #

[View source]
def post_context(context_line_no : Int32) #

[View source]
def pre_context(context_line_no : Int32) #

[View source]
def source_code(from : Int32, to : Int32) #

[View source]
def source_code_length : Int32 #

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

[View source]
def source_column : Int32 #

[View source]
def source_content : String | Nil #

[View source]
def source_content=(source_content : String | Nil) #

[View source]
def source_line : Int32 #

[View source]
def source_line_content : String | Nil #

[View source]
def source_path : String | Nil #

[View source]