yarp 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -1
- data/CONTRIBUTING.md +7 -0
- data/config.yml +154 -43
- data/docs/configuration.md +0 -1
- data/docs/mapping.md +91 -91
- data/docs/serialization.md +23 -20
- data/ext/yarp/api_node.c +1074 -391
- data/ext/yarp/extension.c +1 -1
- data/ext/yarp/extension.h +2 -2
- data/include/yarp/ast.h +501 -301
- data/include/yarp/diagnostic.h +198 -1
- data/include/yarp/node.h +0 -4
- data/include/yarp/util/yp_char.h +1 -1
- data/include/yarp/util/yp_constant_pool.h +11 -4
- data/include/yarp/version.h +2 -2
- data/lib/yarp/desugar_visitor.rb +19 -19
- data/lib/yarp/mutation_visitor.rb +22 -12
- data/lib/yarp/node.rb +2883 -293
- data/lib/yarp/parse_result/comments.rb +172 -0
- data/lib/yarp/parse_result/newlines.rb +60 -0
- data/lib/yarp/pattern.rb +239 -0
- data/lib/yarp/serialize.rb +152 -129
- data/lib/yarp.rb +104 -44
- data/src/diagnostic.c +254 -2
- data/src/node.c +901 -868
- data/src/prettyprint.c +380 -186
- data/src/serialize.c +325 -170
- data/src/unescape.c +20 -20
- data/src/util/yp_char.c +2 -7
- data/src/util/yp_constant_pool.c +41 -8
- data/src/util/yp_newline_list.c +5 -1
- data/src/util/yp_string_list.c +4 -1
- data/src/yarp.c +946 -818
- data/yarp.gemspec +4 -1
- metadata +6 -3
data/yarp.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "yarp"
|
5
|
-
spec.version = "0.
|
5
|
+
spec.version = "0.11.0"
|
6
6
|
spec.authors = ["Shopify"]
|
7
7
|
spec.email = ["ruby@shopify.com"]
|
8
8
|
|
@@ -65,8 +65,11 @@ Gem::Specification.new do |spec|
|
|
65
65
|
"lib/yarp/mutation_visitor.rb",
|
66
66
|
"lib/yarp/node.rb",
|
67
67
|
"lib/yarp/pack.rb",
|
68
|
+
"lib/yarp/pattern.rb",
|
68
69
|
"lib/yarp/ripper_compat.rb",
|
69
70
|
"lib/yarp/serialize.rb",
|
71
|
+
"lib/yarp/parse_result/comments.rb",
|
72
|
+
"lib/yarp/parse_result/newlines.rb",
|
70
73
|
"src/diagnostic.c",
|
71
74
|
"src/enc/yp_big5.c",
|
72
75
|
"src/enc/yp_euc_jp.c",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yarp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shopify
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -70,6 +70,9 @@ files:
|
|
70
70
|
- lib/yarp/mutation_visitor.rb
|
71
71
|
- lib/yarp/node.rb
|
72
72
|
- lib/yarp/pack.rb
|
73
|
+
- lib/yarp/parse_result/comments.rb
|
74
|
+
- lib/yarp/parse_result/newlines.rb
|
75
|
+
- lib/yarp/pattern.rb
|
73
76
|
- lib/yarp/ripper_compat.rb
|
74
77
|
- lib/yarp/serialize.rb
|
75
78
|
- src/diagnostic.c
|
@@ -120,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
123
|
- !ruby/object:Gem::Version
|
121
124
|
version: '0'
|
122
125
|
requirements: []
|
123
|
-
rubygems_version: 3.4.
|
126
|
+
rubygems_version: 3.4.10
|
124
127
|
signing_key:
|
125
128
|
specification_version: 4
|
126
129
|
summary: Yet Another Ruby Parser
|