-
Notifications
You must be signed in to change notification settings - Fork 0
Variables Siblings
Benedict Albrecht edited this page May 20, 2026
·
3 revisions
The :siblings scope makes a variable visible only for siblings' elements — no downstream visibility.
<< name:siblings >>
class C1 ( ) {
aaa();
{
aaa();
aaa();
}
aaa();
}<:sub:> { <-ref,sub-> } <:>
<:ref:> <<name:siblings>> ( ) ; <:>
The aaa variable is visible to sibling elements at the same level, but not to elements nested inside child blocks.
<:sub:> { <-ref,sub-> } <:>
<:ref:> <<name>> ( ) ; <:>
With default scope, aaa would also be visible inside the nested { } block (downstream elements).
See also:
:following·:up·:down·:global·:hook
- 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