rufo 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rufo/formatter.rb +11 -0
- data/lib/rufo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 372a723ce561b8de2f2b66f0c7e75a54a3244c70
|
4
|
+
data.tar.gz: 2dc0c9d5c1bcd2b73a9cb0db3d9ed3f447cdbb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c54acef4e1604b32a35c87a939c698f7a58982f1bbee9b9fd3161bff76c2fe8db94f10a98d446cd91794b46d4e43857c7a97dbc759f5567f3863e1ee80d881d
|
7
|
+
data.tar.gz: 071775e9ecba0da5b9c4cd3bdde5c65c7b8995589fd48269e0db74778cbab38fe4d5f07c94784dbb162a8c04bd3695835947e991ff9d5dc8f655c019f6d749bd
|
data/lib/rufo/formatter.rb
CHANGED
@@ -315,6 +315,8 @@ class Rufo::Formatter
|
|
315
315
|
visit_defined(node)
|
316
316
|
when :alias
|
317
317
|
visit_alias(node)
|
318
|
+
when :undef
|
319
|
+
visit_undef(node)
|
318
320
|
when :mlhs_add_star
|
319
321
|
visit_mlhs_add_star(node)
|
320
322
|
else
|
@@ -1910,6 +1912,15 @@ class Rufo::Formatter
|
|
1910
1912
|
visit to
|
1911
1913
|
end
|
1912
1914
|
|
1915
|
+
def visit_undef(node)
|
1916
|
+
# [:undef, exps]
|
1917
|
+
_, exps = node
|
1918
|
+
|
1919
|
+
consume_keyword "undef"
|
1920
|
+
consume_space
|
1921
|
+
visit_comma_separated_list exps
|
1922
|
+
end
|
1923
|
+
|
1913
1924
|
def visit_literal_elements(elements)
|
1914
1925
|
base_column = @column
|
1915
1926
|
|
data/lib/rufo/version.rb
CHANGED