| 1 |
$continue_inner: true; |
| 2 |
$continue_outer: true; |
| 3 |
$root_default: initial; |
| 4 |
$root_implicit: initial; |
| 5 |
$root_explicit: initial !global; |
| 6 |
|
| 7 |
@function fn() { |
| 8 |
@while $continue_outer { |
| 9 |
$root_implicit: outer; |
| 10 |
$root_explicit: outer !global; |
| 11 |
$root_default: outer !default; |
| 12 |
$local_implicit: outer; |
| 13 |
$local_explicit: outer !global; |
| 14 |
$local_default: outer !default; |
| 15 |
@while $continue_inner { |
| 16 |
$root_implicit: inner; |
| 17 |
$root_explicit: inner !global; |
| 18 |
$root_default: inner !default; |
| 19 |
$local_implicit: inner; |
| 20 |
$local_explicit: inner !global; |
| 21 |
$local_default: inner !default; |
| 22 |
$continue_inner: false; |
| 23 |
} |
| 24 |
$continue_outer: false; |
| 25 |
} |
| 26 |
$check_implicit: $root_implicit !global; |
| 27 |
$check_explicit: $root_explicit !global; |
| 28 |
$check_default: $root_default !global; |
| 29 |
@return null; |
| 30 |
} |
| 31 |
|
| 32 |
result { |
| 33 |
fn: fn(); |
| 34 |
@if variable-exists(continue_outer) { |
| 35 |
continue_outer: $continue_outer; |
| 36 |
} |
| 37 |
@if variable-exists(continue_inner) { |
| 38 |
continue_inner: $continue_inner; |
| 39 |
} |
| 40 |
@if variable-exists(check_implicit) { |
| 41 |
check_implicit: $check_implicit; |
| 42 |
} |
| 43 |
@if variable-exists(check_explicit) { |
| 44 |
check_explicit: $check_explicit; |
| 45 |
} |
| 46 |
@if variable-exists(check_default) { |
| 47 |
check_default: $check_default; |
| 48 |
} |
| 49 |
root_default: $root_default; |
| 50 |
root_implicit: $root_implicit; |
| 51 |
root_explicit: $root_explicit; |
| 52 |
@if variable-exists(local_default) { |
| 53 |
local_default: $local_default; |
| 54 |
} |
| 55 |
@if variable-exists(local_implicit) { |
| 56 |
local_implicit: $local_implicit; |
| 57 |
} |
| 58 |
@if variable-exists(local_explicit) { |
| 59 |
local_explicit: $local_explicit; |
| 60 |
} |
| 61 |
} |