parser 3.1.2.1 → 3.1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/parser/ast/processor.rb +3 -0
- data/lib/parser/builders/default.rb +8 -0
- data/lib/parser/current.rb +3 -3
- data/lib/parser/lexer.rb +867 -837
- data/lib/parser/macruby.rb +5777 -2322
- data/lib/parser/messages.rb +2 -0
- data/lib/parser/meta.rb +1 -0
- data/lib/parser/ruby18.rb +5822 -2260
- data/lib/parser/ruby19.rb +5735 -2305
- data/lib/parser/ruby20.rb +6133 -2469
- data/lib/parser/ruby21.rb +6081 -2491
- data/lib/parser/ruby22.rb +6166 -2521
- data/lib/parser/ruby23.rb +6175 -2524
- data/lib/parser/ruby24.rb +6249 -2533
- data/lib/parser/ruby25.rb +6181 -2503
- data/lib/parser/ruby26.rb +6140 -2511
- data/lib/parser/ruby27.rb +6923 -2892
- data/lib/parser/ruby30.rb +7111 -2966
- data/lib/parser/ruby31.rb +7417 -3061
- data/lib/parser/ruby32.rb +8274 -3921
- data/lib/parser/rubymotion.rb +5683 -2295
- data/lib/parser/static_environment.rb +18 -0
- data/lib/parser/version.rb +1 -1
- data/parser.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41190efffa46e773dca6e8579ecca87ded55e3156774838d0e6bea3cec40803e
|
4
|
+
data.tar.gz: e9219ad92e0da926e964d5f13a00208e772f4f3ba2af7910ac13fd9bf9dcb19b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 786be93811a076e9736a02fccafab91eac37e4d6eab27cdafffc41743ed93e910c84cf073fde0195b7e51e47e1d6868b9673d7c91fbd792ac17428afeabcf68f
|
7
|
+
data.tar.gz: 472cc7b075befe6502a6f1f543565941cc9d1ffd3c7e5f66f2f21bfed82597cc0a0ad42b8e0f3319321fa9554fbd44a9d375b9a7f226231c7980d8782e5dd23a
|
data/lib/parser/ast/processor.rb
CHANGED
@@ -148,6 +148,9 @@ module Parser
|
|
148
148
|
alias on_blockarg_expr process_regular_node
|
149
149
|
alias on_block_pass process_regular_node
|
150
150
|
|
151
|
+
alias on_forwarded_restarg process_regular_node
|
152
|
+
alias on_forwarded_kwrestarg process_regular_node
|
153
|
+
|
151
154
|
alias on_module process_regular_node
|
152
155
|
alias on_class process_regular_node
|
153
156
|
alias on_sclass process_regular_node
|
@@ -1078,6 +1078,14 @@ module Parser
|
|
1078
1078
|
n(:forwarded_args, [], token_map(dots_t))
|
1079
1079
|
end
|
1080
1080
|
|
1081
|
+
def forwarded_restarg(star_t)
|
1082
|
+
n(:forwarded_restarg, [], token_map(star_t))
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
def forwarded_kwrestarg(dstar_t)
|
1086
|
+
n(:forwarded_kwrestarg, [], token_map(dstar_t))
|
1087
|
+
end
|
1088
|
+
|
1081
1089
|
def call_method(receiver, dot_t, selector_t,
|
1082
1090
|
lparen_t=nil, args=[], rparen_t=nil)
|
1083
1091
|
type = call_type_for_dot(dot_t)
|
data/lib/parser/current.rb
CHANGED
@@ -75,7 +75,7 @@ module Parser
|
|
75
75
|
CurrentRuby = Ruby26
|
76
76
|
|
77
77
|
when /^2\.7\./
|
78
|
-
current_version = '2.7.
|
78
|
+
current_version = '2.7.7'
|
79
79
|
if RUBY_VERSION != current_version
|
80
80
|
warn_syntax_deviation 'parser/ruby27', current_version
|
81
81
|
end
|
@@ -84,7 +84,7 @@ module Parser
|
|
84
84
|
CurrentRuby = Ruby27
|
85
85
|
|
86
86
|
when /^3\.0\./
|
87
|
-
current_version = '3.0.
|
87
|
+
current_version = '3.0.5'
|
88
88
|
if RUBY_VERSION != current_version
|
89
89
|
warn_syntax_deviation 'parser/ruby30', current_version
|
90
90
|
end
|
@@ -93,7 +93,7 @@ module Parser
|
|
93
93
|
CurrentRuby = Ruby30
|
94
94
|
|
95
95
|
when /^3\.1\./
|
96
|
-
current_version = '3.1.
|
96
|
+
current_version = '3.1.3'
|
97
97
|
if RUBY_VERSION != current_version
|
98
98
|
warn_syntax_deviation 'parser/ruby31', current_version
|
99
99
|
end
|