struct

SourceMap::Mapping

Inherits Struct < Value < Object

Constructors

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

Source

Instance methods

context_line(context_line_no : Int32) : String | Nil
Source
generated_column
Source
generated_line
Source
is_part_of_app?

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

Source
name
Source
post_context(context_line_no : Int32)
Source
pre_context(context_line_no : Int32)
Source
source_code(from : Int32, to : Int32)
Source
source_code_length
Source
source_code_splitted
Source
source_column
Source
source_content
Source
source_content=(source_content : String | Nil)
Source
source_line
Source
source_line_content
Source
source_path
Source