ruby-next-parser 3.0.1.0 → 3.1.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: 04314ecc977c272142925539baa26dffd12221a0d8577f011032efc7f14cf23d
4
- data.tar.gz: 57b9e5ad8f6663816632ef2fcc3eb774c9d1d7d78439cc05858474d2b83fc398
3
+ metadata.gz: fef58891b1748f78a7d8bc115658f1f85ee6179b75183e1b6aec99aabc8b2309
4
+ data.tar.gz: 0223d5f562f913dbc918833c60ed8922935e2579c71380143c032c47d3b6c7a9
5
5
  SHA512:
6
- metadata.gz: 2fb090a19785c65680738936db0b1de7993ae966fb33516200359d60fff8f23db421689d9de5a2c4ad5ddc020ebf2277c05d113b9e38e928f392b05ce845c35a
7
- data.tar.gz: b7d15fb3999e1f3c161326784c63f4794134c12d7f941a03a10592260c1ad6d7fccbf0592555890ac7f37863cba59c47ef0a1d9217519efe7cc7ef908606d7ba
6
+ metadata.gz: 5d4452ccfec4ee8bfae97444722a8ef2540f0b22532d5339e53e70bb60e316ba6a5fffea659e7e1609b6e1b305f4f40c33d0e9624d858f561979b4b38b3f27a2
7
+ data.tar.gz: e9045782a4123b9fa52d313aea22febf514d09639679a81c19231842ba92058b2c1492e01291d096110fc65aa54be7049e8428b534db943d95fa390352eeda73
@@ -12,53 +12,3 @@ Format:
12
12
  ^^^ selector
13
13
  ^^^^^^^^^ expression
14
14
  ~~~
15
-
16
- ### Hash
17
-
18
- #### Implicit pair
19
-
20
- Format:
21
-
22
- ~~~
23
- (hash (ipair (send nil :x)))
24
- "{x}"
25
- ^ begin^ end
26
- ~~~~~~ expression (send)
27
- ~~~~~~ expression (spair)
28
- ~~~~~~~~ expression (hash)
29
- ~~~
30
-
31
- ~~~
32
- (hash (ipair (lvar :foo)))
33
- "{foo}"
34
- ^ begin^ end
35
- ~~~~~~ expression (send)
36
- ~~~~~~ expression (spair)
37
- ~~~~~~~~ expression (hash)
38
- ~~~
39
-
40
- ### Kwargs
41
-
42
- #### Implicit kwarg
43
-
44
- Format:
45
-
46
- ~~~
47
- (hash (ipair (send nil :x)))
48
- "foo x:"
49
- ~~ expression
50
- ~~~
51
-
52
- ~~~
53
- (hash (ipair (lvar :foo)))
54
- "foo(foo:)"
55
- ~~~~ expression
56
- ~~~
57
-
58
- If `emit_kwargs` compatibility flag is enabled:
59
-
60
- ~~~
61
- (kwargs (ipair (send nil :x)))
62
- "foo x:"
63
- ~~ expression
64
- ~~~
@@ -9,10 +9,6 @@ module Parser
9
9
  def on_meth_ref(node)
10
10
  node
11
11
  end
12
-
13
- def on_ipair(node)
14
- node
15
- end
16
12
  end
17
13
  end
18
14
  end
@@ -11,14 +11,6 @@ module Parser
11
11
  send_map(receiver, dot_t, selector_t, nil, [], nil))
12
12
  end
13
13
 
14
- def ipair(var)
15
- n(:ipair, [ var ], var.loc)
16
- end
17
-
18
- def ipair_keyword(var)
19
- n(:ipair, [ var ], var.loc)
20
- end
21
-
22
14
  def check_reserved_for_numparam(name, loc)
23
15
  # We don't want to raise SyntaxError, 'cause we want to use _x vars for older Rubies.
24
16
  # The exception should be raised by Ruby itself for versions supporting numbered parameters