pub fn dependency_collector<'a>(
  source_map: &'a SourceMap,
  items: &'a mut Vec<DependencyDescriptor>,
  decls: &'a HashSet<(JsWord, SyntaxContext)>,
  ignore_mark: swc_common::Mark,
  scope_hoist: bool,
) -> impl Fold + 'a {
  DependencyCollector {
    source_map,
    items,
    in_try: false,
    in_promise: false,
    require_node: None,
    decls,
    ignore_mark,
    scope_hoist,
  }
}
/// This pass collects dependencies in a module and compiles references as needed to work with Parcel's JSRuntime.
This pass collects dependencies in a module and compiles references as needed to work with Parcel's JSRuntime.
This pass collects dependencies in a module and compiles references as needed to work with Parcel ' s JSRuntime .
pub fn dependency_collector<'a>(
  source_map: &'a SourceMap,
  items: &'a mut Vec<DependencyDescriptor>,
  decls: &'a HashSet<(JsWord, SyntaxContext)>,
  ignore_mark: swc_common::Mark,
  scope_hoist: bool,
) -> impl Fold + 'a {
  DependencyCollector {
    source_map,
    items,
    in_try: false,
    in_promise: false,
    require_node: None,
    decls,
    ignore_mark,
    scope_hoist,
  }
}
pub fn dependency_collector < ' a > ( source_map : & ' a SourceMap , items : & ' a mut Vec < DependencyDescriptor > , decls : & ' a HashSet < ( JsWord , SyntaxContext ) > , ignore_mark : swc_common :: Mark , scope_hoist : bool , ) -> impl Fold + ' a { DependencyCollector { source_map , items , in_try : false , in_promise : false , require_node : None , decls , ignore_mark , scope_hoist , } }
This pass collects dependencies in a module and compiles references as needed to work with Parcel's JSRuntime.
This pass collects dependencies in a module and compiles references as needed to work with Parcel ' s JSRuntime .
source_map
&'a SourceMap
items
&'a mut Vec<DependencyDescriptor>
decls
&'a HashSet<(JsWord, SyntaxContext)>
ignore_mark
swc_common::Mark
scope_hoist
bool
source_map
&'a SourceMap
items
&'a mut Vec<DependencyDescriptor>
decls
&'a HashSet<(JsWord, SyntaxContext)>
ignore_mark
swc_common::Mark
scope_hoist
bool