the FStringStart token is consumed by the caller
(&mut self, node: Node)
| 3268 | |
| 3269 | // the FStringStart token is consumed by the caller |
| 3270 | fn parse_fstring(&mut self, node: Node) -> Result<Vec<Expression>, ParsingError> { |
| 3271 | let mut expressions = vec![]; |
| 3272 | while self.cur_kind() != Kind::FStringEnd { |
| 3273 | expressions.push(self.parse_fstring_middle()?) |
| 3274 | } |
| 3275 | self.bump(Kind::FStringEnd); |
| 3276 | Ok(expressions) |
| 3277 | } |
| 3278 | |
| 3279 | // This function is just here to make it easier to refactor the spans. |
| 3280 | // I don't know how the spans and line number should be handled here |
no test coverage detected