Skip to main content

build_scope_info

Function build_scope_info 

Source
pub fn build_scope_info(module: &Module) -> ScopeInfo
Expand description

Build scope information from an SWC Module AST.

This performs two passes over the AST:

  1. Build the scope tree and collect all bindings
  2. Resolve identifier references to their bindings