()
| 534 | } |
| 535 | |
| 536 | pub(crate) fn ident<'a, I>() -> impl Parser<'a, I, Ident, ParserError<'a>> + Clone |
| 537 | where |
| 538 | I: Input<'a, Token = lr::Token, Span = Span> + BorrowInput<'a>, |
| 539 | { |
| 540 | ident_part() |
| 541 | .then_ignore(ctrl('.')) |
| 542 | .repeated() |
| 543 | .collect() |
| 544 | .then(choice((ident_part(), ctrl('*').map(|_| "*".to_string())))) |
| 545 | .map(|(mut parts, last): (Vec<String>, String)| { |
| 546 | parts.push(last); |
| 547 | Ident::from_path(parts) |
| 548 | }) |
| 549 | } |
| 550 | |
| 551 | fn operator_unary<'a, I>() -> impl Parser<'a, I, UnOp, ParserError<'a>> + Clone |
| 552 | where |
no test coverage detected