(exprEnd: number, expr: string, handler: string)
| 102 | // ending at `exprEnd`: the Rust scope gate reads the reference's line, and |
| 103 | // rustfmt wraps a long `.route(` call so its handler sits below it (#2326). |
| 104 | const handlerSite = (exprEnd: number, expr: string, handler: string) => { |
| 105 | const offset = exprEnd - expr.length + expr.lastIndexOf(handler); |
| 106 | return { line: lineAt(safe, offset), column: offset - safe.lastIndexOf('\n', offset - 1) - 1 }; |
| 107 | }; |
| 108 | |
| 109 | // Actix-web / Rocket attribute: #[get("/path")] fn handler(..) |
| 110 | // Capture the method, path, and the fn identifier that follows. |
no test coverage detected