pub fn new<I>(files: I) -> Self
  where
    I: IntoIterator<Item = (Uri, String)>,
  {
    let mut uris = UriDb::default();
    let syntax_data: FxHashMap<_, _> = files
      .into_iter()
      .map(|(uri, contents)| (uris.insert(uri), get_syntax_data(contents)))
      .collect();
    get_all_semantic_data(uris, syntax_data)
  }
/// Returns a new `Db` for the given files.
Returns a new `Db` for the given files.
Returns a new ` Db ` for the given files .
pub fn new<I>(files: I) -> Self
  where
    I: IntoIterator<Item = (Uri, String)>,
  {
    let mut uris = UriDb::default();
    let syntax_data: FxHashMap<_, _> = files
      .into_iter()
      .map(|(uri, contents)| (uris.insert(uri), get_syntax_data(contents)))
      .collect();
    get_all_semantic_data(uris, syntax_data)
  }
pub fn new < I > ( files : I ) -> Self where I : IntoIterator < Item = ( Uri , String ) > , { let mut uris = UriDb :: default ( ) ; let syntax_data : FxHashMap < _ , _ > = files . into_iter ( ) . map ( | ( uri , contents ) | ( uris . insert ( uri ) , get_syntax_data ( contents ) ) ) . collect ( ) ; get_all_semantic_data ( uris , syntax_data ) }
Returns a new `Db` for the given files.
Returns a new ` Db ` for the given files .
files
I
files
I