Struct sourcemap::SourceView [] [src]

pub struct SourceView<'a> { /* fields omitted */ }

Provides efficient access to minified sources.

This type is used to implement farily efficient source mapping operations.

Methods

impl<'a> SourceView<'a>
[src]

[src]

Creates an optimized view of a given source.

[src]

Creates an optimized view from a given source string

[src]

Returns a requested minified line.

[src]

Returns a line slice.

Note that columns are indexed as JavaScript WTF-16 columns.

[src]

Returns an iterator over all lines.

[src]

Returns the source.

[src]

Given a token and minified function name this attemps to resolve the name to an original function name.

This invokes some guesswork and requires access to the original minified source. This will not yield proper results for anonymous functions or functions that do not have clear function names. (For instance it's recommended that dotted function names are not passed to this function).

[src]

Returns the number of lines.

Trait Implementations

impl<'a> Clone for SourceView<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> !Send for SourceView<'a>

impl<'a> !Sync for SourceView<'a>