class

GoRouteGroupScope::Scopes

Inherits Reference < Object

The route-group state at one point in a file: the assignment-group table and the stack of closure groups still open at the current brace depth.

Instance methods

aliases

Assignment groups that add no path segment (authV1 := apiV1.Group("/"), clientAuth := g.Group("")): their prefix is their parent's, so a prefix match cannot tell their routes from the parent's own.

Source
current

The innermost enclosing closure group, or Global at file scope.

Source
extend(base : Scope, seg : String) : Scope

base extended by one path segment. An unresolvable base stays unresolvable — a literal segment under an unknown parent is still unknown.

Source
frames

Open closure groups, each with the brace depth it lives above.

Source
groups

Variable name -> the scope it names.

Source
parents

Assignment group variable -> each variable it is derived from, with the 1-based row of that assignment (app := clientAuth.Group("/app")). A name assigned in several functions keeps every assignment.

Source
receiver(name : String | Nil) : Scope

Resolve a receiver token: a tracked group variable, the innermost open closure group, or the global scope.

Source
row

The 1-based row of the line being yielded.

Source
row=(row : Int32)

The 1-based row of the line being yielded.

Source