pub fn format_span(&self, span: Span, config: EmitConfig) -> Option<ProgramTextEdit> {
        let edit = match get_item_at_span(span, &self.original_ast())? {
            AstItem::Assignment(asgn) => asgn.emit_pretty(config),
            AstItem::Expr(expr) => expr.emit_pretty(config),
        };
        Some(ProgramTextEdit { span, edit })
    }
/// Formats a span in the program, if the span exactly includes something that can be formatted.
Formats a span in the program, if the span exactly includes something that can be formatted.
Formats a span in the program if the span exactly includes something that can be formatted .
pub fn format_span(&self, span: Span, config: EmitConfig) -> Option<ProgramTextEdit> {
        let edit = match get_item_at_span(span, &self.original_ast())? {
            AstItem::Assignment(asgn) => asgn.emit_pretty(config),
            AstItem::Expr(expr) => expr.emit_pretty(config),
        };
        Some(ProgramTextEdit { span, edit })
    }
pub fn format_span ( & self , span : Span , config : EmitConfig ) -> Option < ProgramTextEdit > { let edit = match get_item_at_span ( span , & self . original_ast ( ) ) ? { AstItem :: Assignment ( asgn ) => asgn . emit_pretty ( config ) , AstItem :: Expr ( expr ) => expr . emit_pretty ( config ) , } ; Some ( ProgramTextEdit { span , edit } ) }
Formats a span in the program, if the span exactly includes something that can be formatted.
Formats a span in the program if the span exactly includes something that can be formatted .
&self
span
Span
config
EmitConfig
&self
span
Span
config
EmitConfig