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