pub struct SourceMapParser { /* private fields */ }Expand description
Source map parser for extracting original source paths
Implementations§
Source§impl SourceMapParser
impl SourceMapParser
Sourcepub fn with_max_size(max_size: usize) -> Self
pub fn with_max_size(max_size: usize) -> Self
Create a new source map parser with custom max size
Sourcepub fn detect_source_map_references(
&self,
js_content: &str,
js_url: &Url,
) -> Vec<SourceMapReference>
pub fn detect_source_map_references( &self, js_content: &str, js_url: &Url, ) -> Vec<SourceMapReference>
Detect source map references in JavaScript content
Sourcepub fn parse_source_map(&self, content: &str) -> Result<SourceMap>
pub fn parse_source_map(&self, content: &str) -> Result<SourceMap>
Parse source map from JSON content
Sourcepub fn analyze_source_map(
&self,
source_map: &SourceMap,
map_url: &str,
) -> SourceMapAnalysis
pub fn analyze_source_map( &self, source_map: &SourceMap, map_url: &str, ) -> SourceMapAnalysis
Analyze source map and extract interesting information
Sourcepub fn generate_report(&self, analysis: &SourceMapAnalysis) -> String
pub fn generate_report(&self, analysis: &SourceMapAnalysis) -> String
Generate a summary report from analysis
Trait Implementations§
Source§impl Clone for SourceMapParser
impl Clone for SourceMapParser
Source§fn clone(&self) -> SourceMapParser
fn clone(&self) -> SourceMapParser
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceMapParser
impl RefUnwindSafe for SourceMapParser
impl Send for SourceMapParser
impl Sync for SourceMapParser
impl Unpin for SourceMapParser
impl UnsafeUnpin for SourceMapParser
impl UnwindSafe for SourceMapParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more