class Noir::TreeSitterGoRouteExtractor::RouteHelper

Overview

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).

Defined in:

miniparsers/go_route_extractor_ts/chi.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(body : LibTreeSitter::TSNode, router_param : String, router_index : Int32) #

[View source]

Instance Method Detail

def body : LibTreeSitter::TSNode #

[View source]
def calls : Int32 #

[View source]
def calls=(calls : Int32) #

[View source]
def router_index : Int32 #

[View source]
def router_param : String #

[View source]