| 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 |
$root_implicit: outer; |
| 9 |
$root_explicit: outer !global; |
| 10 |
$root_default: outer !default; |
| 11 |
$local_implicit: outer; |
| 12 |
$local_explicit: outer !global; |
| 13 |
$local_default: outer !default; |
| 14 |
@while $continue_inner { |
| 15 |
$root_implicit: inner; |
| 16 |
$root_explicit: inner !global; |
| 17 |
$root_default: inner !default; |
| 18 |
$local_implicit: inner; |
| 19 |
$local_explicit: inner !global; |
| 20 |
$local_default: inner !default; |
| 21 |
$continue_inner: false; |
| 22 |
} |
| 23 |
$continue_outer: false; |
| 24 |
@return null; |
| 25 |
} |
| 26 |
|
| 27 |
result { |
| 28 |
fn: fn(); |
| 29 |
@if variable-exists(continue_outer) { |
| 30 |
continue_outer: $continue_outer; |
| 31 |
} |
| 32 |
@if variable-exists(continue_inner) { |
| 33 |
continue_inner: $continue_inner; |
| 34 |
} |
| 35 |
root_default: $root_default; |
| 36 |
root_implicit: $root_implicit; |
| 37 |
root_explicit: $root_explicit; |
| 38 |
@if variable-exists(local_default) { |
| 39 |
local_default: $local_default; |
| 40 |
} |
| 41 |
@if variable-exists(local_implicit) { |
| 42 |
local_implicit: $local_implicit; |
| 43 |
} |
| 44 |
@if variable-exists(local_explicit) { |
| 45 |
local_explicit: $local_explicit; |
| 46 |
} |
| 47 |
} |