mirascript-core 0.1.105

Compiler and bytecode definitions for the MiraScript language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::parser::Range;

use super::prelude::*;

impl Formattable for Range<'_> {
    fn format(&self, formatter: &Formatter) -> FormatDoc {
        self.0
            .format(formatter)
            .append(formatter.line_())
            .append(formatter.token(&self.1))
            .append(formatter.line_())
            .append(self.2.format(formatter))
            .group()
    }
}