(&self)
| 1623 | } |
| 1624 | |
| 1625 | fn maybe_child(&self) -> syn::Result<()> { |
| 1626 | let start = self.stream.span().start(); |
| 1627 | if start.line <= self.parent.line { |
| 1628 | let msg = format!("child expected at line > {}", self.parent.line); |
| 1629 | Err(Error::new(self.stream.span(), msg))? |
| 1630 | } |
| 1631 | if start.column != self.parent.column + 2 { |
| 1632 | let msg = format!("child expected at column {}", self.parent.column + 2); |
| 1633 | Err(Error::new(self.stream.span(), msg))? |
| 1634 | } |
| 1635 | Ok(()) |
| 1636 | } |
| 1637 | } |
| 1638 | } |
| 1639 |
no test coverage detected