(block: &syn::Block)
| 10 | } |
| 11 | |
| 12 | pub(crate) fn parse_body_end(block: &syn::Block) -> LineColumn { |
| 13 | let end = block.span().end().into_loc(); |
| 14 | LineColumn { |
| 15 | line: end.line, |
| 16 | column: end.column.map(|s| s - 1), |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | /// Parse the line and column number of function block. |
| 21 | /// |