ruby-next-parser 3.1.0.1 → 3.1.1.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: 46b3b9b02b4da7cc45349e2a76f0513d932d4e2afa3adbbbaa2a15a9cbc06d58
4
- data.tar.gz: 422404f70f481cfc1da98d702d8ae012c189572fbcf59d46ab4ecf5b102d6f8f
3
+ metadata.gz: 9d12b880eb84d0abfd5348029a1283d3d11140588d84b356e043c1d8a82bb926
4
+ data.tar.gz: 352fa687518b19a3e7e174a9f64bdf810a92384d1f39eca7ea2630cacc4e0833
5
5
  SHA512:
6
- metadata.gz: 3f005e28eae36f59646dcb954ecc5b931431111116719d1e6efb66681bd4cb86b76aa8dfb424204b166b290f2319417c6ae4a5be81a1e270db57d5817f273bf9
7
- data.tar.gz: 50f23fbe701926b6916198780f8d6253d4eaac96bf74287121c8ccabae648285902d209fdc7d1e2a75944a9aabf442e353e6a3ea89a11dda97485dcddfe25905
6
+ metadata.gz: e0d1f0102b93796a567f0fe5bc34469682a5bf1a6ef920e7b92c82dfa405d0572381ad4efc5d96fdcea78fec2109f1b655bd574430891c61951a27f0ab7d4358
7
+ data.tar.gz: 1d3dd2e4d685958b4b73f62b97da4c2e1e7207102f1654762371aa794ca3f1e27c48068e4674b30f6a6ac1bc47c6ccc5a3bcd4425fecd69c6d29e9187716b990
@@ -11,6 +11,13 @@ module Parser
11
11
  send_map(receiver, dot_t, selector_t, nil, [], nil))
12
12
  end
13
13
 
14
+ def match_var(var)
15
+ return super(var) unless var.is_a?(::Parser::AST::Node)
16
+
17
+ n(:match_var, [ var ],
18
+ var_send_map(var))
19
+ end
20
+
14
21
  def check_reserved_for_numparam(name, loc)
15
22
  # We don't want to raise SyntaxError, 'cause we want to use _x vars for older Rubies.
16
23
  # The exception should be raised by Ruby itself for versions supporting numbered parameters
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parser
4
- NEXT_VERSION = "3.1.0.1"
4
+ NEXT_VERSION = "3.1.1.0"
5
5
  end