aboutsummaryrefslogtreecommitdiff
path: root/lib/compatibility/2.4.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-03-22 14:25:18 -0700
committerBruce Hill <bruce@bruce-hill.com>2019-03-22 14:25:18 -0700
commit7f30fb293f11744eaab6935e791c5aa993411722 (patch)
treebe8bf8845583b89c0502dd32c2a8d2d1b65924cc /lib/compatibility/2.4.nom
parentbe9a86d639d0f676f63a5c540d4a0d0d2b2d3c6e (diff)
Fixed a bunch of compatibility issues that made upgrading really slow,
especially when upgrading across many versions.
Diffstat (limited to 'lib/compatibility/2.4.nom')
-rw-r--r--lib/compatibility/2.4.nom12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/compatibility/2.4.nom b/lib/compatibility/2.4.nom
index 480257a..eca5d73 100644
--- a/lib/compatibility/2.4.nom
+++ b/lib/compatibility/2.4.nom
@@ -15,7 +15,7 @@ upgrade $tree to "2.4" as:
$conditions = []
$new_lines = []
$body =
- ($tree.2 upgraded) if ($tree.2 is "Block" syntax tree) else [$tree.2 upgraded]
+ $tree.2 if ($tree.2 is "Block" syntax tree) else [$tree.2]
for $line in $body:
when:
@@ -29,7 +29,7 @@ upgrade $tree to "2.4" as:
$new_lines, add $line
($line.stub == "* else"):
- $new_lines, add (else \$line.3)
+ $new_lines, add \(else \$line.3)
else:
$conditions, add $line.2
@@ -49,7 +49,7 @@ upgrade $tree to "2.4" as:
$values = []
$new_lines = []
$body =
- ($tree.5 upgraded) if ($tree.5 is "Block" syntax tree) else [$tree.5 upgraded]
+ $tree.5 if ($tree.5 is "Block" syntax tree) else [$tree.5]
for $line in $body:
when:
@@ -63,7 +63,7 @@ upgrade $tree to "2.4" as:
$new_lines, add $line
($line.stub == "* else"):
- $new_lines, add (else \$line.3)
+ $new_lines, add \(else \$line.3)
else:
$values, add $line.2
@@ -77,6 +77,6 @@ upgrade $tree to "2.4" as:
return
\(
- if \($tree.2 upgraded) is
+ if \($tree.2) is
\("Block" tree from $tree.5.source with (unpack $new_lines))
- ) \ No newline at end of file
+ )