diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-03-22 14:25:18 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-03-22 14:25:18 -0700 |
| commit | 7f30fb293f11744eaab6935e791c5aa993411722 (patch) | |
| tree | be8bf8845583b89c0502dd32c2a8d2d1b65924cc /lib/compatibility/4.11.nom | |
| parent | be9a86d639d0f676f63a5c540d4a0d0d2b2d3c6e (diff) | |
Fixed a bunch of compatibility issues that made upgrading really slow,
especially when upgrading across many versions.
Diffstat (limited to 'lib/compatibility/4.11.nom')
| -rw-r--r-- | lib/compatibility/4.11.nom | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/compatibility/4.11.nom b/lib/compatibility/4.11.nom index d5a158b..e263c1e 100644 --- a/lib/compatibility/4.11.nom +++ b/lib/compatibility/4.11.nom @@ -9,7 +9,7 @@ use "compatibility/compatibility" ### Overhaul of function literals: upgrade action "call 1 with" to "4.11" via - for ($tree $end_version): + for $tree: $tree2 = {.type = "Action", .source = $tree.source, .1 = $tree.2} for ($i = $arg) in $tree.4: $tree2.($i + 1) = $arg @@ -18,7 +18,7 @@ upgrade action ->$yield_value to "4.11" as (yield $yield_value) ### Replace set {$x:1, $y:2} with [$x, $y] = [1, 2] upgrade action "set" to "4.11" via - for ($tree $end_version): + for $tree: [$lhs, $rhs] = [\[], \[]] $lhs.source = $tree.2.source $rhs.source = $tree.2.source @@ -95,4 +95,4 @@ upgrade action [ upgrade action [ unless none of $items $body else $else unless none of $items then $body else $else -] to "4.11" as (if (any of $items) $body else $else)
\ No newline at end of file +] to "4.11" as (if (any of $items) $body else $else) |
