Pushes the given line as part of this code example.
(&mut self, original: InputDocstringLine<'src>)
| 1233 | |
| 1234 | /// Pushes the given line as part of this code example. |
| 1235 | fn push(&mut self, original: InputDocstringLine<'src>) { |
| 1236 | // N.B. We record the code portion as identical to the original line. |
| 1237 | // When we go to reformat the code lines, we change them by removing |
| 1238 | // the `min_indent`. This design is necessary because the true value of |
| 1239 | // `min_indent` isn't known until the entire block has been parsed. |
| 1240 | let code = original.line; |
| 1241 | self.lines.push(CodeExampleLine { original, code }); |
| 1242 | } |
| 1243 | |
| 1244 | /// Consume this block and add actions to the give queue for formatting. |
| 1245 | /// |