-
Notifications
You must be signed in to change notification settings - Fork 0
Variables Following
Benedict Albrecht edited this page May 20, 2026
·
3 revisions
The :following scope is the default scope for variables. It makes the variable visible for all younger siblings and downstream elements, including its own downstream. Resolution follows hierarchical order: new overwrites old.
<< name:following >>
<< name >> (equivalent — :following is the default)
class C1 ( ) {
let xxx ;
let yyy ;
{
let zzz = xxx;
let xxx = yyy;
}
let yyy = xxx;
}<:{}:> { <-let-> } <:>
<:let:> let <<name>> <| = <<'name'>> <||> |> ; <:>
-
zzz = xxx→ resolves to the firstxxx(the older sibling at the parent level) -
xxx = yyy→ resolves to the firstyyy(visible from above) -
yyy = xxx→ resolves to the firstxxx(the one at the same level — the innerxxxis not visible outside its block)
Variables with :following scope are visible to younger siblings and their downstream, following the hierarchical order.
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping