Function swc_core::base::sourcemap::locate_sourcemap_reference

pub fn locate_sourcemap_reference<R>(
    rdr: R
) -> Result<Option<SourceMapRef>, Error>
where R: Read,
Available on crate feature __base only.
Expand description

Locates a sourcemap reference

Given a reader to a JavaScript file this tries to find the correct sourcemap reference comment and return it.