-
Notifications
You must be signed in to change notification settings - Fork 0
Variables Up
Benedict Albrecht edited this page May 20, 2026
·
4 revisions
The :up scope makes a variable visible for all siblings and their (including the object's) downstream elements, as well as their upper element. If the upper element is a file, it is visible for file references.
<< name:up >>
class C1 ( ) {
F2() ;
function F1 ( ) {
F2();
}
function F2 ( ) {
F2();
}
}<:function:> function <<name:up>> ( ) { <---> } <:>
<:ref:> <<'name'>> ( ) ; <:>
F2 is visible to:
- The parent scope (
F2()at the top ofC1) - All sibling objects (
F1can callF2()) - Its own downstream (recursive call within
F2)
<:function:> function <<name>> ( ) { <---> } <:>
<:ref:> <<'name'>> ( ) ; <:>
With default scope, F2 would only be visible to younger siblings and their downstream — it would not be visible to F1 (an older sibling) or the parent scope above it.
- 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