parser 3.1.2.1 → 3.2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2af0967a09b6a9965a76198eb9081b7b1a7f287534ed6ebd904c3dab4071ab31
4
- data.tar.gz: ff41dd72074325e42b743a5653526ab536984bbc007d41b3407e3f7641c96cd9
3
+ metadata.gz: 1f610391f493e02fe53d3282d0334cae06d96e736f65f90127a03e737b216eb2
4
+ data.tar.gz: 2105182a6079d599d5757205a6dd9400484422be82b02bae9f50f515d2388f2b
5
5
  SHA512:
6
- metadata.gz: 9c6dec85eb0fb4a735eec43846ea605312891b880aa198cf172a85a57dceb80ae33120699ca8ef854bd33b5f89252b13f4ff9f800c9124ac9fb779e83c211230
7
- data.tar.gz: 2dbbfe323c61fbf395743ba81443104b652ab8d2a736e7ac3d1f01229ccf9551c2edf13f48c901ca3e8c3337780c0d91cf6bd0cbadcb53d6209b092ff398a0a5
6
+ metadata.gz: 7ea8cc04e8e2d69867bf7f6566001fb88f0ad59fbe3a2e6782e4e939e662a3bdee0a5a77b42aff275b95125e3f51f6adb16ba859ddff7ab5e672a7a119ef323e
7
+ data.tar.gz: afeac266aea582d8c84c395e467698d6c7243e1cf7400613f7512f2d7dfb08dd94a3553f20ae07fe99a27035e54da6fcfbfdd20dbf484c7c18e00edb62ed0f18
@@ -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)
@@ -3,7 +3,7 @@
3
3
  module Parser
4
4
  class << self
5
5
  def warn_syntax_deviation(feature, version)
6
- warn "warning: parser/current is loading #{feature}, which recognizes" \
6
+ warn "warning: parser/current is loading #{feature}, which recognizes " \
7
7
  "#{version}-compliant syntax, but you are running #{RUBY_VERSION}.\n" \
8
8
  "Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri."
9
9
  end
@@ -75,7 +75,7 @@ module Parser
75
75
  CurrentRuby = Ruby26
76
76
 
77
77
  when /^2\.7\./
78
- current_version = '2.7.6'
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.4'
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.2'
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
@@ -102,7 +102,7 @@ module Parser
102
102
  CurrentRuby = Ruby31
103
103
 
104
104
  when /^3\.2\./
105
- current_version = '3.2.0-dev'
105
+ current_version = '3.2.0'
106
106
  if RUBY_VERSION != current_version
107
107
  warn_syntax_deviation 'parser/ruby32', current_version
108
108
  end
@@ -112,8 +112,8 @@ module Parser
112
112
 
113
113
  else # :nocov:
114
114
  # Keep this in sync with released Ruby.
115
- warn_syntax_deviation 'parser/ruby31', '3.1.x'
116
- require 'parser/ruby31'
117
- CurrentRuby = Ruby31
115
+ warn_syntax_deviation 'parser/ruby32', '3.2.x'
116
+ require 'parser/ruby32'
117
+ CurrentRuby = Ruby32
118
118
  end
119
119
  end