MCPcopy Create free account
hub / github.com/Glyphack/enderpy / parse_fstring

Method parse_fstring

parser/src/parser/parser.rs:3270–3277  ·  view source on GitHub ↗

the FStringStart token is consumed by the caller

(&mut self, node: Node)

Source from the content-addressed store, hash-verified

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

Callers 1

parse_atomMethod · 0.80

Calls 3

cur_kindMethod · 0.80
parse_fstring_middleMethod · 0.80
bumpMethod · 0.80

Tested by

no test coverage detected