pub fn format(&self, uri: &Uri) -> Option<String> {
    let id = self.uris.get_id(uri)?;
    let errors = &self.syntax_data[&id].errors;
    if errors.lex.is_empty() && errors.parse.is_empty() {
      fmt::get(self.syntax_data[&id].ast_root.clone())
    } else {
      None
    }
  }
/// Formats the file at the given URI.
Formats the file at the given URI.
Formats the file at the given URI .
pub fn format(&self, uri: &Uri) -> Option<String> {
    let id = self.uris.get_id(uri)?;
    let errors = &self.syntax_data[&id].errors;
    if errors.lex.is_empty() && errors.parse.is_empty() {
      fmt::get(self.syntax_data[&id].ast_root.clone())
    } else {
      None
    }
  }
pub fn format ( & self , uri : & Uri ) -> Option < String > { let id = self . uris . get_id ( uri ) ? ; let errors = & self . syntax_data [ & id ] . errors ; if errors . lex . is_empty ( ) && errors . parse . is_empty ( ) { fmt :: get ( self . syntax_data [ & id ] . ast_root . clone ( ) ) } else { None } }
Formats the file at the given URI.
Formats the file at the given URI .
&self
uri
&Uri
&self
uri
&Uri