class
GoRouteGroupScope::Scopes
- GoRouteGroupScope::Scopes
- Reference
- Object
Overview
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.
Defined in:
tagger/framework_taggers/go/group_scope.crInstance Method Summary
-
#current : Scope
The innermost enclosing closure group, or Global at file scope.
-
#extend(base : Scope, seg : String) : Scope
baseextended by one path segment. -
#frames : Array({threshold: Int32, scope: {kind: GoRouteGroupScope::ScopeKind, prefix: String}})
Open closure groups, each with the brace depth it lives above.
-
#groups : Hash(String, {kind: GoRouteGroupScope::ScopeKind, prefix: String})
Variable name -> the scope it names.
-
#receiver(name : String | Nil) : Scope
Resolve a receiver token: a tracked group variable, the innermost open closure group, or the global scope.
Instance Method Detail
base extended by one path segment. An unresolvable base stays
unresolvable — a literal segment under an unknown parent is still
unknown.
Open closure groups, each with the brace depth it lives above.
Variable name -> the scope it names.
Resolve a receiver token: a tracked group variable, the innermost open closure group, or the global scope.