Struct sourcemap::SourceMapSection [] [src]

pub struct SourceMapSection { /* fields omitted */ }

Represents a section in a sourcemap index

Methods

impl SourceMapSection
[src]

Create a new sourcemap index section

  • offset: offset as line and column
  • url: optional URL of where the sourcemap is located
  • map: an optional already resolved internal sourcemap

Returns the offset line

Returns the offset column

Returns the offset as tuple

Returns the URL of the referenced map if available

Returns a reference to the embedded sourcemap if available

Replaces the embedded sourcemap