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

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
receiver(name : String | Nil) : Scope

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

Source