class

Noir::TreeSitterGoRouteExtractor::RouteHelper

Inherits Reference < Object

A same-file function (or closure variable) that takes the router as a parameter and registers routes on it — gitea's func addProjectRoutes(m *web.Router, ...) called from three different groups, or addActionsRoutes := func(m *web.Router, ...). Its body is walked at every call site with the caller's active prefix, and its declaration is skipped by the free-floating walk (which would otherwise report the routes at the helper's own, prefix-less, path).

Constructors

new(body : LibTreeSitter::TSNode, router_param : String, router_index : Int32)
Source

Instance methods

body
Source
calls
Source
calls=(calls : Int32)
Source
router_index
Source
router_param
Source