(indent: &'a Indentation, line_ending: LineEnding)
| 116 | |
| 117 | impl<'a> Generator<'a> { |
| 118 | pub const fn new(indent: &'a Indentation, line_ending: LineEnding) -> Self { |
| 119 | Self { |
| 120 | // Style preferences. |
| 121 | indent, |
| 122 | line_ending, |
| 123 | mode: Mode::Default, |
| 124 | // Internal state. |
| 125 | buffer: String::new(), |
| 126 | indent_depth: 0, |
| 127 | num_newlines: 0, |
| 128 | initial: true, |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /// Sets the mode for code unparsing. |
| 133 | #[must_use] |
nothing calls this directly
no outgoing calls
no test coverage detected