Skip to content

getsentry/js-source-scopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

JS Source Scopes

Build Status codecov

This crate provides functionality for extracting and processing scope information from JavaScript source files, and resolving that scope via SourceMaps.

Features

  • Extracting scopes from source text using [extract_scope_names]
  • Fast lookup of scopes by byte offset using [ScopeIndex]
  • Fast conversion between line/column source positions and byte offsets using [SourceContext]
  • Resolution of minified scope names to their original names using [NameResolver]

License

JS Source Scopes is licensed under the Apache-2.0 license.