Tail ident of a handler arg: `gin.Logger()`→`Logger`, `mw`→`mw`; null for string paths / closures.
(expr: string)
| 1926 | } |
| 1927 | /** Tail ident of a handler arg: `gin.Logger()`→`Logger`, `mw`→`mw`; null for string paths / closures. */ |
| 1928 | function goHandlerIdent(expr: string): string | null { |
| 1929 | const cleaned = expr.trim().replace(/\(\s*\)$/, ''); // drop a trailing call () |
| 1930 | if (!cleaned || cleaned.startsWith('"') || cleaned.startsWith('`') || cleaned.startsWith('func')) return null; |
| 1931 | const m = cleaned.match(/(?:\.|^)([A-Za-z_]\w*)$/); |
| 1932 | return m ? m[1]! : null; |
| 1933 | } |
| 1934 | |
| 1935 | async function ginMiddlewareChainEdges(queries: QueryBuilder, ctx: ResolutionContext, onYield: MaybeYield): Promise<Edge[]> { |
| 1936 | let scanned255 = 0; |
no outgoing calls
no test coverage detected