rbs 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/docs/sigs.md +3 -1
- data/lib/rbs/parser.rb +108 -109
- data/lib/rbs/parser.y +0 -1
- data/lib/rbs/version.rb +1 -1
- data/rbs.gemspec +1 -1
- data/steep/Gemfile.lock +12 -12
- metadata +3 -12
- data/bin/annotate-with-rdoc +0 -153
- data/bin/console +0 -14
- data/bin/query-rdoc +0 -103
- data/bin/rbs-prof +0 -9
- data/bin/run_in_md.rb +0 -49
- data/bin/setup +0 -8
- data/bin/sort +0 -89
- data/bin/steep +0 -4
- data/bin/test_runner.rb +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ab9c0212ca34de0fa1b8394b02713e5bc63e0904d7f95d0e1c0480635e3e39
|
4
|
+
data.tar.gz: 71be3592a61873855149305edc2b0ef3aabc97259e0ed46c697598fefddb4177
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 608db9f87d437542fe683b336198f588c670d0632ce2733570156b253d9fd4514d4b8fefacb38db0d26ed9fac149b2bfc459ff9779334bff8fa08ec103722fde
|
7
|
+
data.tar.gz: 157550825a76be4dd00a8419c001404ef0ad86406340131893a3ac7be473e7cf397da8434b4a841b6dc7f9968eceb93fdbd5f729b23c52c785725be0c1516c77
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 1.2.1 (2021-05-27)
|
6
|
+
|
7
|
+
This release includes the following minor changes:
|
8
|
+
|
9
|
+
* Fix test to run the tests in ruby repository. ([#679](https://github.com/ruby/rbs/pull/679))
|
10
|
+
* Remove unnecessary files from the gem package. ([#675](https://github.com/ruby/rbs/pull/675))
|
11
|
+
* Suppress unused variable warning ([#674](https://github.com/ruby/rbs/pull/674))
|
12
|
+
* Update documents ([#672](https://github.com/ruby/rbs/pull/672))
|
13
|
+
|
5
14
|
## 1.2.0 (2021-04-21)
|
6
15
|
|
7
16
|
### Summary
|
data/docs/sigs.md
CHANGED
@@ -131,9 +131,11 @@ You may need to specify `-r` or `-I` to load signatures.
|
|
131
131
|
The default is `-I sig`.
|
132
132
|
|
133
133
|
```
|
134
|
-
RBS_TEST_OPT='-r
|
134
|
+
RBS_TEST_OPT='-r pathname -I sig'
|
135
135
|
```
|
136
136
|
|
137
|
+
Replacing `pathname` with the `stdlib` you want to include. For example, if you need to load `Set` and `BigDecimal` in `stdlib`, you would need to have `RBS_TEST_OPT='-r set -r bigdecimal -I sig'`
|
138
|
+
|
137
139
|
`RBS_TEST_LOGLEVEL` can be used to configure log level. Defaults to `info`.
|
138
140
|
|
139
141
|
`RBS_TEST_RAISE` may help to debug the type signatures.
|
data/lib/rbs/parser.rb
CHANGED
@@ -8,7 +8,7 @@ require 'racc/parser.rb'
|
|
8
8
|
module RBS
|
9
9
|
class Parser < Racc::Parser
|
10
10
|
|
11
|
-
module_eval(<<'...end parser.y/module_eval...', 'parser.y',
|
11
|
+
module_eval(<<'...end parser.y/module_eval...', 'parser.y', 1393)
|
12
12
|
|
13
13
|
Types = RBS::Types
|
14
14
|
Namespace = RBS::Namespace
|
@@ -2233,7 +2233,6 @@ module_eval(<<'.,.,', 'parser.y', 603)
|
|
2233
2233
|
module_eval(<<'.,.,', 'parser.y', 609)
|
2234
2234
|
def _reduce_70(val, _values, result)
|
2235
2235
|
location = val[3].location + val[6].last.location
|
2236
|
-
children = {}
|
2237
2236
|
|
2238
2237
|
required_children = { keyword: val[3].location, name: val[5].location }
|
2239
2238
|
optional_children = { kind: nil, overload: nil }
|
@@ -2270,7 +2269,7 @@ module_eval(<<'.,.,', 'parser.y', 609)
|
|
2270
2269
|
|
2271
2270
|
# reduce 71 omitted
|
2272
2271
|
|
2273
|
-
module_eval(<<'.,.,', 'parser.y',
|
2272
|
+
module_eval(<<'.,.,', 'parser.y', 643)
|
2274
2273
|
def _reduce_72(val, _values, result)
|
2275
2274
|
RBS.logger.warn "`incompatible` method attribute is deprecated and ignored."
|
2276
2275
|
|
@@ -2278,42 +2277,42 @@ module_eval(<<'.,.,', 'parser.y', 644)
|
|
2278
2277
|
end
|
2279
2278
|
.,.,
|
2280
2279
|
|
2281
|
-
module_eval(<<'.,.,', 'parser.y',
|
2280
|
+
module_eval(<<'.,.,', 'parser.y', 647)
|
2282
2281
|
def _reduce_73(val, _values, result)
|
2283
2282
|
result = nil
|
2284
2283
|
result
|
2285
2284
|
end
|
2286
2285
|
.,.,
|
2287
2286
|
|
2288
|
-
module_eval(<<'.,.,', 'parser.y',
|
2287
|
+
module_eval(<<'.,.,', 'parser.y', 648)
|
2289
2288
|
def _reduce_74(val, _values, result)
|
2290
2289
|
result = LocatedValue.new(value: :singleton, location: val[0].location + val[1].location)
|
2291
2290
|
result
|
2292
2291
|
end
|
2293
2292
|
.,.,
|
2294
2293
|
|
2295
|
-
module_eval(<<'.,.,', 'parser.y',
|
2294
|
+
module_eval(<<'.,.,', 'parser.y', 649)
|
2296
2295
|
def _reduce_75(val, _values, result)
|
2297
2296
|
result = LocatedValue.new(value: :singleton_instance, location: val[0].location + val[1].location)
|
2298
2297
|
result
|
2299
2298
|
end
|
2300
2299
|
.,.,
|
2301
2300
|
|
2302
|
-
module_eval(<<'.,.,', 'parser.y',
|
2301
|
+
module_eval(<<'.,.,', 'parser.y', 652)
|
2303
2302
|
def _reduce_76(val, _values, result)
|
2304
2303
|
result = [val[0]]
|
2305
2304
|
result
|
2306
2305
|
end
|
2307
2306
|
.,.,
|
2308
2307
|
|
2309
|
-
module_eval(<<'.,.,', 'parser.y',
|
2308
|
+
module_eval(<<'.,.,', 'parser.y', 653)
|
2310
2309
|
def _reduce_77(val, _values, result)
|
2311
2310
|
result = [LocatedValue.new(value: :dot3, location: val[0].location)]
|
2312
2311
|
result
|
2313
2312
|
end
|
2314
2313
|
.,.,
|
2315
2314
|
|
2316
|
-
module_eval(<<'.,.,', 'parser.y',
|
2315
|
+
module_eval(<<'.,.,', 'parser.y', 655)
|
2317
2316
|
def _reduce_78(val, _values, result)
|
2318
2317
|
result = val[2].unshift(val[0])
|
2319
2318
|
|
@@ -2321,7 +2320,7 @@ module_eval(<<'.,.,', 'parser.y', 656)
|
|
2321
2320
|
end
|
2322
2321
|
.,.,
|
2323
2322
|
|
2324
|
-
module_eval(<<'.,.,', 'parser.y',
|
2323
|
+
module_eval(<<'.,.,', 'parser.y', 660)
|
2325
2324
|
def _reduce_79(val, _values, result)
|
2326
2325
|
reset_variable_scope
|
2327
2326
|
|
@@ -2339,14 +2338,14 @@ module_eval(<<'.,.,', 'parser.y', 661)
|
|
2339
2338
|
end
|
2340
2339
|
.,.,
|
2341
2340
|
|
2342
|
-
module_eval(<<'.,.,', 'parser.y',
|
2341
|
+
module_eval(<<'.,.,', 'parser.y', 674)
|
2343
2342
|
def _reduce_80(val, _values, result)
|
2344
2343
|
result = nil
|
2345
2344
|
result
|
2346
2345
|
end
|
2347
2346
|
.,.,
|
2348
2347
|
|
2349
|
-
module_eval(<<'.,.,', 'parser.y',
|
2348
|
+
module_eval(<<'.,.,', 'parser.y', 676)
|
2350
2349
|
def _reduce_81(val, _values, result)
|
2351
2350
|
result = LocatedValue.new(value: val[1], location: val[0].location + val[2].location)
|
2352
2351
|
|
@@ -2354,7 +2353,7 @@ module_eval(<<'.,.,', 'parser.y', 677)
|
|
2354
2353
|
end
|
2355
2354
|
.,.,
|
2356
2355
|
|
2357
|
-
module_eval(<<'.,.,', 'parser.y',
|
2356
|
+
module_eval(<<'.,.,', 'parser.y', 681)
|
2358
2357
|
def _reduce_82(val, _values, result)
|
2359
2358
|
block = Types::Block.new(type: val[1].value, required: true)
|
2360
2359
|
result = LocatedValue.new(value: block, location: val[0].location + val[2].location)
|
@@ -2363,7 +2362,7 @@ module_eval(<<'.,.,', 'parser.y', 682)
|
|
2363
2362
|
end
|
2364
2363
|
.,.,
|
2365
2364
|
|
2366
|
-
module_eval(<<'.,.,', 'parser.y',
|
2365
|
+
module_eval(<<'.,.,', 'parser.y', 685)
|
2367
2366
|
def _reduce_83(val, _values, result)
|
2368
2367
|
block = Types::Block.new(type: val[2].value, required: false)
|
2369
2368
|
result = LocatedValue.new(value: block, location: val[0].location + val[3].location)
|
@@ -2372,7 +2371,7 @@ module_eval(<<'.,.,', 'parser.y', 686)
|
|
2372
2371
|
end
|
2373
2372
|
.,.,
|
2374
2373
|
|
2375
|
-
module_eval(<<'.,.,', 'parser.y',
|
2374
|
+
module_eval(<<'.,.,', 'parser.y', 691)
|
2376
2375
|
def _reduce_84(val, _values, result)
|
2377
2376
|
loc = val[0].location
|
2378
2377
|
|
@@ -2385,7 +2384,7 @@ module_eval(<<'.,.,', 'parser.y', 692)
|
|
2385
2384
|
end
|
2386
2385
|
.,.,
|
2387
2386
|
|
2388
|
-
module_eval(<<'.,.,', 'parser.y',
|
2387
|
+
module_eval(<<'.,.,', 'parser.y', 699)
|
2389
2388
|
def _reduce_85(val, _values, result)
|
2390
2389
|
result = LocatedValue.new(value: val[0].value.to_sym,
|
2391
2390
|
location: val[0].location + val[1].location)
|
@@ -2412,7 +2411,7 @@ module_eval(<<'.,.,', 'parser.y', 700)
|
|
2412
2411
|
|
2413
2412
|
# reduce 94 omitted
|
2414
2413
|
|
2415
|
-
module_eval(<<'.,.,', 'parser.y',
|
2414
|
+
module_eval(<<'.,.,', 'parser.y', 708)
|
2416
2415
|
def _reduce_95(val, _values, result)
|
2417
2416
|
unless val[0].location.pred?(val[1].location)
|
2418
2417
|
raise SyntaxError.new(token_str: "kQUESTION", error_value: val[1])
|
@@ -2425,7 +2424,7 @@ module_eval(<<'.,.,', 'parser.y', 709)
|
|
2425
2424
|
end
|
2426
2425
|
.,.,
|
2427
2426
|
|
2428
|
-
module_eval(<<'.,.,', 'parser.y',
|
2427
|
+
module_eval(<<'.,.,', 'parser.y', 716)
|
2429
2428
|
def _reduce_96(val, _values, result)
|
2430
2429
|
unless val[0].location.pred?(val[1].location)
|
2431
2430
|
raise SyntaxError.new(token_str: "kEXCLAMATION", error_value: val[1])
|
@@ -2518,14 +2517,14 @@ module_eval(<<'.,.,', 'parser.y', 717)
|
|
2518
2517
|
|
2519
2518
|
# reduce 136 omitted
|
2520
2519
|
|
2521
|
-
module_eval(<<'.,.,', 'parser.y',
|
2520
|
+
module_eval(<<'.,.,', 'parser.y', 736)
|
2522
2521
|
def _reduce_137(val, _values, result)
|
2523
2522
|
result = nil
|
2524
2523
|
result
|
2525
2524
|
end
|
2526
2525
|
.,.,
|
2527
2526
|
|
2528
|
-
module_eval(<<'.,.,', 'parser.y',
|
2527
|
+
module_eval(<<'.,.,', 'parser.y', 738)
|
2529
2528
|
def _reduce_138(val, _values, result)
|
2530
2529
|
val[1].each {|p| insert_bound_variable(p.name) }
|
2531
2530
|
|
@@ -2535,7 +2534,7 @@ module_eval(<<'.,.,', 'parser.y', 739)
|
|
2535
2534
|
end
|
2536
2535
|
.,.,
|
2537
2536
|
|
2538
|
-
module_eval(<<'.,.,', 'parser.y',
|
2537
|
+
module_eval(<<'.,.,', 'parser.y', 745)
|
2539
2538
|
def _reduce_139(val, _values, result)
|
2540
2539
|
result = Declarations::ModuleTypeParams.new()
|
2541
2540
|
result.add(val[0])
|
@@ -2544,7 +2543,7 @@ module_eval(<<'.,.,', 'parser.y', 746)
|
|
2544
2543
|
end
|
2545
2544
|
.,.,
|
2546
2545
|
|
2547
|
-
module_eval(<<'.,.,', 'parser.y',
|
2546
|
+
module_eval(<<'.,.,', 'parser.y', 749)
|
2548
2547
|
def _reduce_140(val, _values, result)
|
2549
2548
|
result = val[0].add(val[2])
|
2550
2549
|
|
@@ -2552,7 +2551,7 @@ module_eval(<<'.,.,', 'parser.y', 750)
|
|
2552
2551
|
end
|
2553
2552
|
.,.,
|
2554
2553
|
|
2555
|
-
module_eval(<<'.,.,', 'parser.y',
|
2554
|
+
module_eval(<<'.,.,', 'parser.y', 754)
|
2556
2555
|
def _reduce_141(val, _values, result)
|
2557
2556
|
loc = case
|
2558
2557
|
when l0 = val[0].location
|
@@ -2577,49 +2576,49 @@ module_eval(<<'.,.,', 'parser.y', 755)
|
|
2577
2576
|
end
|
2578
2577
|
.,.,
|
2579
2578
|
|
2580
|
-
module_eval(<<'.,.,', 'parser.y',
|
2579
|
+
module_eval(<<'.,.,', 'parser.y', 775)
|
2581
2580
|
def _reduce_142(val, _values, result)
|
2582
2581
|
result = LocatedValue.new(value: :invariant, location: nil)
|
2583
2582
|
result
|
2584
2583
|
end
|
2585
2584
|
.,.,
|
2586
2585
|
|
2587
|
-
module_eval(<<'.,.,', 'parser.y',
|
2586
|
+
module_eval(<<'.,.,', 'parser.y', 776)
|
2588
2587
|
def _reduce_143(val, _values, result)
|
2589
2588
|
result = LocatedValue.new(value: :covariant, location: val[0].location)
|
2590
2589
|
result
|
2591
2590
|
end
|
2592
2591
|
.,.,
|
2593
2592
|
|
2594
|
-
module_eval(<<'.,.,', 'parser.y',
|
2593
|
+
module_eval(<<'.,.,', 'parser.y', 777)
|
2595
2594
|
def _reduce_144(val, _values, result)
|
2596
2595
|
result = LocatedValue.new(value: :contravariant, location: val[0].location)
|
2597
2596
|
result
|
2598
2597
|
end
|
2599
2598
|
.,.,
|
2600
2599
|
|
2601
|
-
module_eval(<<'.,.,', 'parser.y',
|
2600
|
+
module_eval(<<'.,.,', 'parser.y', 780)
|
2602
2601
|
def _reduce_145(val, _values, result)
|
2603
2602
|
result = LocatedValue.new(value: false, location: nil)
|
2604
2603
|
result
|
2605
2604
|
end
|
2606
2605
|
.,.,
|
2607
2606
|
|
2608
|
-
module_eval(<<'.,.,', 'parser.y',
|
2607
|
+
module_eval(<<'.,.,', 'parser.y', 781)
|
2609
2608
|
def _reduce_146(val, _values, result)
|
2610
2609
|
result = LocatedValue.new(value: true, location: val[0].location)
|
2611
2610
|
result
|
2612
2611
|
end
|
2613
2612
|
.,.,
|
2614
2613
|
|
2615
|
-
module_eval(<<'.,.,', 'parser.y',
|
2614
|
+
module_eval(<<'.,.,', 'parser.y', 784)
|
2616
2615
|
def _reduce_147(val, _values, result)
|
2617
2616
|
result = nil
|
2618
2617
|
result
|
2619
2618
|
end
|
2620
2619
|
.,.,
|
2621
2620
|
|
2622
|
-
module_eval(<<'.,.,', 'parser.y',
|
2621
|
+
module_eval(<<'.,.,', 'parser.y', 786)
|
2623
2622
|
def _reduce_148(val, _values, result)
|
2624
2623
|
val[1].each {|var| insert_bound_variable(var) }
|
2625
2624
|
|
@@ -2630,7 +2629,7 @@ module_eval(<<'.,.,', 'parser.y', 787)
|
|
2630
2629
|
end
|
2631
2630
|
.,.,
|
2632
2631
|
|
2633
|
-
module_eval(<<'.,.,', 'parser.y',
|
2632
|
+
module_eval(<<'.,.,', 'parser.y', 794)
|
2634
2633
|
def _reduce_149(val, _values, result)
|
2635
2634
|
result = [val[0].value.to_sym]
|
2636
2635
|
|
@@ -2638,7 +2637,7 @@ module_eval(<<'.,.,', 'parser.y', 795)
|
|
2638
2637
|
end
|
2639
2638
|
.,.,
|
2640
2639
|
|
2641
|
-
module_eval(<<'.,.,', 'parser.y',
|
2640
|
+
module_eval(<<'.,.,', 'parser.y', 797)
|
2642
2641
|
def _reduce_150(val, _values, result)
|
2643
2642
|
result = val[0].push(val[2].value.to_sym)
|
2644
2643
|
|
@@ -2646,7 +2645,7 @@ module_eval(<<'.,.,', 'parser.y', 798)
|
|
2646
2645
|
end
|
2647
2646
|
.,.,
|
2648
2647
|
|
2649
|
-
module_eval(<<'.,.,', 'parser.y',
|
2648
|
+
module_eval(<<'.,.,', 'parser.y', 802)
|
2650
2649
|
def _reduce_151(val, _values, result)
|
2651
2650
|
location = val[1].location + val[3].location
|
2652
2651
|
location = location.with_children(
|
@@ -2666,7 +2665,7 @@ module_eval(<<'.,.,', 'parser.y', 803)
|
|
2666
2665
|
end
|
2667
2666
|
.,.,
|
2668
2667
|
|
2669
|
-
module_eval(<<'.,.,', 'parser.y',
|
2668
|
+
module_eval(<<'.,.,', 'parser.y', 817)
|
2670
2669
|
def _reduce_152(val, _values, result)
|
2671
2670
|
location = val[1].location + val[7].location
|
2672
2671
|
location = location.with_children(
|
@@ -2689,7 +2688,7 @@ module_eval(<<'.,.,', 'parser.y', 818)
|
|
2689
2688
|
end
|
2690
2689
|
.,.,
|
2691
2690
|
|
2692
|
-
module_eval(<<'.,.,', 'parser.y',
|
2691
|
+
module_eval(<<'.,.,', 'parser.y', 837)
|
2693
2692
|
def _reduce_153(val, _values, result)
|
2694
2693
|
location = val[1].location + val[4].location
|
2695
2694
|
location = location.with_children(
|
@@ -2707,7 +2706,7 @@ module_eval(<<'.,.,', 'parser.y', 838)
|
|
2707
2706
|
end
|
2708
2707
|
.,.,
|
2709
2708
|
|
2710
|
-
module_eval(<<'.,.,', 'parser.y',
|
2709
|
+
module_eval(<<'.,.,', 'parser.y', 852)
|
2711
2710
|
def _reduce_154(val, _values, result)
|
2712
2711
|
location = val[0].location + val[2].location
|
2713
2712
|
location = location.with_children(
|
@@ -2722,7 +2721,7 @@ module_eval(<<'.,.,', 'parser.y', 853)
|
|
2722
2721
|
end
|
2723
2722
|
.,.,
|
2724
2723
|
|
2725
|
-
module_eval(<<'.,.,', 'parser.y',
|
2724
|
+
module_eval(<<'.,.,', 'parser.y', 862)
|
2726
2725
|
def _reduce_155(val, _values, result)
|
2727
2726
|
location = (val[0] || val[1]).location + val[2].location
|
2728
2727
|
|
@@ -2742,7 +2741,7 @@ module_eval(<<'.,.,', 'parser.y', 863)
|
|
2742
2741
|
end
|
2743
2742
|
.,.,
|
2744
2743
|
|
2745
|
-
module_eval(<<'.,.,', 'parser.y',
|
2744
|
+
module_eval(<<'.,.,', 'parser.y', 879)
|
2746
2745
|
def _reduce_156(val, _values, result)
|
2747
2746
|
location = val[0].location + val[2].location
|
2748
2747
|
location = location.with_children(
|
@@ -2759,7 +2758,7 @@ module_eval(<<'.,.,', 'parser.y', 880)
|
|
2759
2758
|
|
2760
2759
|
# reduce 157 omitted
|
2761
2760
|
|
2762
|
-
module_eval(<<'.,.,', 'parser.y',
|
2761
|
+
module_eval(<<'.,.,', 'parser.y', 892)
|
2763
2762
|
def _reduce_158(val, _values, result)
|
2764
2763
|
types = case l = val[0]
|
2765
2764
|
when Types::Union
|
@@ -2774,7 +2773,7 @@ module_eval(<<'.,.,', 'parser.y', 893)
|
|
2774
2773
|
end
|
2775
2774
|
.,.,
|
2776
2775
|
|
2777
|
-
module_eval(<<'.,.,', 'parser.y',
|
2776
|
+
module_eval(<<'.,.,', 'parser.y', 902)
|
2778
2777
|
def _reduce_159(val, _values, result)
|
2779
2778
|
types = case l = val[0]
|
2780
2779
|
when Types::Intersection
|
@@ -2790,7 +2789,7 @@ module_eval(<<'.,.,', 'parser.y', 903)
|
|
2790
2789
|
end
|
2791
2790
|
.,.,
|
2792
2791
|
|
2793
|
-
module_eval(<<'.,.,', 'parser.y',
|
2792
|
+
module_eval(<<'.,.,', 'parser.y', 915)
|
2794
2793
|
def _reduce_160(val, _values, result)
|
2795
2794
|
result = Types::Bases::Void.new(location: val[0].location)
|
2796
2795
|
|
@@ -2798,7 +2797,7 @@ module_eval(<<'.,.,', 'parser.y', 916)
|
|
2798
2797
|
end
|
2799
2798
|
.,.,
|
2800
2799
|
|
2801
|
-
module_eval(<<'.,.,', 'parser.y',
|
2800
|
+
module_eval(<<'.,.,', 'parser.y', 918)
|
2802
2801
|
def _reduce_161(val, _values, result)
|
2803
2802
|
RBS.logger.warn "`any` type is deprecated. Use `untyped` instead. (#{val[0].location.to_s})"
|
2804
2803
|
result = Types::Bases::Any.new(location: val[0].location)
|
@@ -2807,7 +2806,7 @@ module_eval(<<'.,.,', 'parser.y', 919)
|
|
2807
2806
|
end
|
2808
2807
|
.,.,
|
2809
2808
|
|
2810
|
-
module_eval(<<'.,.,', 'parser.y',
|
2809
|
+
module_eval(<<'.,.,', 'parser.y', 922)
|
2811
2810
|
def _reduce_162(val, _values, result)
|
2812
2811
|
result = Types::Bases::Any.new(location: val[0].location)
|
2813
2812
|
|
@@ -2815,7 +2814,7 @@ module_eval(<<'.,.,', 'parser.y', 923)
|
|
2815
2814
|
end
|
2816
2815
|
.,.,
|
2817
2816
|
|
2818
|
-
module_eval(<<'.,.,', 'parser.y',
|
2817
|
+
module_eval(<<'.,.,', 'parser.y', 925)
|
2819
2818
|
def _reduce_163(val, _values, result)
|
2820
2819
|
result = Types::Bases::Bool.new(location: val[0].location)
|
2821
2820
|
|
@@ -2823,7 +2822,7 @@ module_eval(<<'.,.,', 'parser.y', 926)
|
|
2823
2822
|
end
|
2824
2823
|
.,.,
|
2825
2824
|
|
2826
|
-
module_eval(<<'.,.,', 'parser.y',
|
2825
|
+
module_eval(<<'.,.,', 'parser.y', 928)
|
2827
2826
|
def _reduce_164(val, _values, result)
|
2828
2827
|
result = Types::Bases::Nil.new(location: val[0].location)
|
2829
2828
|
|
@@ -2831,7 +2830,7 @@ module_eval(<<'.,.,', 'parser.y', 929)
|
|
2831
2830
|
end
|
2832
2831
|
.,.,
|
2833
2832
|
|
2834
|
-
module_eval(<<'.,.,', 'parser.y',
|
2833
|
+
module_eval(<<'.,.,', 'parser.y', 931)
|
2835
2834
|
def _reduce_165(val, _values, result)
|
2836
2835
|
result = Types::Bases::Top.new(location: val[0].location)
|
2837
2836
|
|
@@ -2839,7 +2838,7 @@ module_eval(<<'.,.,', 'parser.y', 932)
|
|
2839
2838
|
end
|
2840
2839
|
.,.,
|
2841
2840
|
|
2842
|
-
module_eval(<<'.,.,', 'parser.y',
|
2841
|
+
module_eval(<<'.,.,', 'parser.y', 934)
|
2843
2842
|
def _reduce_166(val, _values, result)
|
2844
2843
|
result = Types::Bases::Bottom.new(location: val[0].location)
|
2845
2844
|
|
@@ -2847,7 +2846,7 @@ module_eval(<<'.,.,', 'parser.y', 935)
|
|
2847
2846
|
end
|
2848
2847
|
.,.,
|
2849
2848
|
|
2850
|
-
module_eval(<<'.,.,', 'parser.y',
|
2849
|
+
module_eval(<<'.,.,', 'parser.y', 937)
|
2851
2850
|
def _reduce_167(val, _values, result)
|
2852
2851
|
result = Types::Bases::Self.new(location: val[0].location)
|
2853
2852
|
|
@@ -2855,7 +2854,7 @@ module_eval(<<'.,.,', 'parser.y', 938)
|
|
2855
2854
|
end
|
2856
2855
|
.,.,
|
2857
2856
|
|
2858
|
-
module_eval(<<'.,.,', 'parser.y',
|
2857
|
+
module_eval(<<'.,.,', 'parser.y', 940)
|
2859
2858
|
def _reduce_168(val, _values, result)
|
2860
2859
|
result = Types::Optional.new(type: Types::Bases::Self.new(location: val[0].location),
|
2861
2860
|
location: val[0].location)
|
@@ -2864,7 +2863,7 @@ module_eval(<<'.,.,', 'parser.y', 941)
|
|
2864
2863
|
end
|
2865
2864
|
.,.,
|
2866
2865
|
|
2867
|
-
module_eval(<<'.,.,', 'parser.y',
|
2866
|
+
module_eval(<<'.,.,', 'parser.y', 944)
|
2868
2867
|
def _reduce_169(val, _values, result)
|
2869
2868
|
result = Types::Bases::Instance.new(location: val[0].location)
|
2870
2869
|
|
@@ -2872,7 +2871,7 @@ module_eval(<<'.,.,', 'parser.y', 945)
|
|
2872
2871
|
end
|
2873
2872
|
.,.,
|
2874
2873
|
|
2875
|
-
module_eval(<<'.,.,', 'parser.y',
|
2874
|
+
module_eval(<<'.,.,', 'parser.y', 947)
|
2876
2875
|
def _reduce_170(val, _values, result)
|
2877
2876
|
result = Types::Bases::Class.new(location: val[0].location)
|
2878
2877
|
|
@@ -2880,7 +2879,7 @@ module_eval(<<'.,.,', 'parser.y', 948)
|
|
2880
2879
|
end
|
2881
2880
|
.,.,
|
2882
2881
|
|
2883
|
-
module_eval(<<'.,.,', 'parser.y',
|
2882
|
+
module_eval(<<'.,.,', 'parser.y', 950)
|
2884
2883
|
def _reduce_171(val, _values, result)
|
2885
2884
|
result = Types::Literal.new(literal: true, location: val[0].location)
|
2886
2885
|
|
@@ -2888,7 +2887,7 @@ module_eval(<<'.,.,', 'parser.y', 951)
|
|
2888
2887
|
end
|
2889
2888
|
.,.,
|
2890
2889
|
|
2891
|
-
module_eval(<<'.,.,', 'parser.y',
|
2890
|
+
module_eval(<<'.,.,', 'parser.y', 953)
|
2892
2891
|
def _reduce_172(val, _values, result)
|
2893
2892
|
result = Types::Literal.new(literal: false, location: val[0].location)
|
2894
2893
|
|
@@ -2896,7 +2895,7 @@ module_eval(<<'.,.,', 'parser.y', 954)
|
|
2896
2895
|
end
|
2897
2896
|
.,.,
|
2898
2897
|
|
2899
|
-
module_eval(<<'.,.,', 'parser.y',
|
2898
|
+
module_eval(<<'.,.,', 'parser.y', 956)
|
2900
2899
|
def _reduce_173(val, _values, result)
|
2901
2900
|
result = Types::Literal.new(literal: val[0].value, location: val[0].location)
|
2902
2901
|
|
@@ -2904,7 +2903,7 @@ module_eval(<<'.,.,', 'parser.y', 957)
|
|
2904
2903
|
end
|
2905
2904
|
.,.,
|
2906
2905
|
|
2907
|
-
module_eval(<<'.,.,', 'parser.y',
|
2906
|
+
module_eval(<<'.,.,', 'parser.y', 959)
|
2908
2907
|
def _reduce_174(val, _values, result)
|
2909
2908
|
result = Types::Literal.new(literal: val[0].value, location: val[0].location)
|
2910
2909
|
|
@@ -2912,7 +2911,7 @@ module_eval(<<'.,.,', 'parser.y', 960)
|
|
2912
2911
|
end
|
2913
2912
|
.,.,
|
2914
2913
|
|
2915
|
-
module_eval(<<'.,.,', 'parser.y',
|
2914
|
+
module_eval(<<'.,.,', 'parser.y', 962)
|
2916
2915
|
def _reduce_175(val, _values, result)
|
2917
2916
|
result = Types::Literal.new(literal: val[0].value, location: val[0].location)
|
2918
2917
|
|
@@ -2920,7 +2919,7 @@ module_eval(<<'.,.,', 'parser.y', 963)
|
|
2920
2919
|
end
|
2921
2920
|
.,.,
|
2922
2921
|
|
2923
|
-
module_eval(<<'.,.,', 'parser.y',
|
2922
|
+
module_eval(<<'.,.,', 'parser.y', 965)
|
2924
2923
|
def _reduce_176(val, _values, result)
|
2925
2924
|
name = val[0].value
|
2926
2925
|
args = []
|
@@ -2955,7 +2954,7 @@ module_eval(<<'.,.,', 'parser.y', 966)
|
|
2955
2954
|
end
|
2956
2955
|
.,.,
|
2957
2956
|
|
2958
|
-
module_eval(<<'.,.,', 'parser.y',
|
2957
|
+
module_eval(<<'.,.,', 'parser.y', 995)
|
2959
2958
|
def _reduce_177(val, _values, result)
|
2960
2959
|
name = val[0].value
|
2961
2960
|
args = val[2]
|
@@ -2985,7 +2984,7 @@ module_eval(<<'.,.,', 'parser.y', 996)
|
|
2985
2984
|
end
|
2986
2985
|
.,.,
|
2987
2986
|
|
2988
|
-
module_eval(<<'.,.,', 'parser.y',
|
2987
|
+
module_eval(<<'.,.,', 'parser.y', 1020)
|
2989
2988
|
def _reduce_178(val, _values, result)
|
2990
2989
|
location = val[0].location + val[1].location
|
2991
2990
|
result = Types::Tuple.new(types: [], location: location)
|
@@ -2994,7 +2993,7 @@ module_eval(<<'.,.,', 'parser.y', 1021)
|
|
2994
2993
|
end
|
2995
2994
|
.,.,
|
2996
2995
|
|
2997
|
-
module_eval(<<'.,.,', 'parser.y',
|
2996
|
+
module_eval(<<'.,.,', 'parser.y', 1024)
|
2998
2997
|
def _reduce_179(val, _values, result)
|
2999
2998
|
location = val[0].location + val[3].location
|
3000
2999
|
types = val[1]
|
@@ -3004,7 +3003,7 @@ module_eval(<<'.,.,', 'parser.y', 1025)
|
|
3004
3003
|
end
|
3005
3004
|
.,.,
|
3006
3005
|
|
3007
|
-
module_eval(<<'.,.,', 'parser.y',
|
3006
|
+
module_eval(<<'.,.,', 'parser.y', 1029)
|
3008
3007
|
def _reduce_180(val, _values, result)
|
3009
3008
|
type = val[1].dup
|
3010
3009
|
type.instance_eval do
|
@@ -3016,7 +3015,7 @@ module_eval(<<'.,.,', 'parser.y', 1030)
|
|
3016
3015
|
end
|
3017
3016
|
.,.,
|
3018
3017
|
|
3019
|
-
module_eval(<<'.,.,', 'parser.y',
|
3018
|
+
module_eval(<<'.,.,', 'parser.y', 1036)
|
3020
3019
|
def _reduce_181(val, _values, result)
|
3021
3020
|
location = val[0].location + val[3].location
|
3022
3021
|
location = location.with_children(
|
@@ -3028,7 +3027,7 @@ module_eval(<<'.,.,', 'parser.y', 1037)
|
|
3028
3027
|
end
|
3029
3028
|
.,.,
|
3030
3029
|
|
3031
|
-
module_eval(<<'.,.,', 'parser.y',
|
3030
|
+
module_eval(<<'.,.,', 'parser.y', 1043)
|
3032
3031
|
def _reduce_182(val, _values, result)
|
3033
3032
|
type, block = val[1].value
|
3034
3033
|
result = Types::Proc.new(type: type, block: block, location: val[0].location + val[1].location)
|
@@ -3037,7 +3036,7 @@ module_eval(<<'.,.,', 'parser.y', 1044)
|
|
3037
3036
|
end
|
3038
3037
|
.,.,
|
3039
3038
|
|
3040
|
-
module_eval(<<'.,.,', 'parser.y',
|
3039
|
+
module_eval(<<'.,.,', 'parser.y', 1047)
|
3041
3040
|
def _reduce_183(val, _values, result)
|
3042
3041
|
result = Types::Optional.new(type: val[0], location: val[0].location + val[1].location)
|
3043
3042
|
|
@@ -3047,7 +3046,7 @@ module_eval(<<'.,.,', 'parser.y', 1048)
|
|
3047
3046
|
|
3048
3047
|
# reduce 184 omitted
|
3049
3048
|
|
3050
|
-
module_eval(<<'.,.,', 'parser.y',
|
3049
|
+
module_eval(<<'.,.,', 'parser.y', 1053)
|
3051
3050
|
def _reduce_185(val, _values, result)
|
3052
3051
|
result = [val[0]]
|
3053
3052
|
|
@@ -3055,7 +3054,7 @@ module_eval(<<'.,.,', 'parser.y', 1054)
|
|
3055
3054
|
end
|
3056
3055
|
.,.,
|
3057
3056
|
|
3058
|
-
module_eval(<<'.,.,', 'parser.y',
|
3057
|
+
module_eval(<<'.,.,', 'parser.y', 1056)
|
3059
3058
|
def _reduce_186(val, _values, result)
|
3060
3059
|
result = val[0] + [val[2]]
|
3061
3060
|
|
@@ -3063,7 +3062,7 @@ module_eval(<<'.,.,', 'parser.y', 1057)
|
|
3063
3062
|
end
|
3064
3063
|
.,.,
|
3065
3064
|
|
3066
|
-
module_eval(<<'.,.,', 'parser.y',
|
3065
|
+
module_eval(<<'.,.,', 'parser.y', 1061)
|
3067
3066
|
def _reduce_187(val, _values, result)
|
3068
3067
|
result = Types::Record.new(
|
3069
3068
|
fields: val[1],
|
@@ -3074,7 +3073,7 @@ module_eval(<<'.,.,', 'parser.y', 1062)
|
|
3074
3073
|
end
|
3075
3074
|
.,.,
|
3076
3075
|
|
3077
|
-
module_eval(<<'.,.,', 'parser.y',
|
3076
|
+
module_eval(<<'.,.,', 'parser.y', 1069)
|
3078
3077
|
def _reduce_188(val, _values, result)
|
3079
3078
|
result = val[0]
|
3080
3079
|
|
@@ -3082,7 +3081,7 @@ module_eval(<<'.,.,', 'parser.y', 1070)
|
|
3082
3081
|
end
|
3083
3082
|
.,.,
|
3084
3083
|
|
3085
|
-
module_eval(<<'.,.,', 'parser.y',
|
3084
|
+
module_eval(<<'.,.,', 'parser.y', 1072)
|
3086
3085
|
def _reduce_189(val, _values, result)
|
3087
3086
|
result = val[0].merge!(val[2])
|
3088
3087
|
|
@@ -3090,7 +3089,7 @@ module_eval(<<'.,.,', 'parser.y', 1073)
|
|
3090
3089
|
end
|
3091
3090
|
.,.,
|
3092
3091
|
|
3093
|
-
module_eval(<<'.,.,', 'parser.y',
|
3092
|
+
module_eval(<<'.,.,', 'parser.y', 1077)
|
3094
3093
|
def _reduce_190(val, _values, result)
|
3095
3094
|
result = { val[0].value => val[2] }
|
3096
3095
|
|
@@ -3098,7 +3097,7 @@ module_eval(<<'.,.,', 'parser.y', 1078)
|
|
3098
3097
|
end
|
3099
3098
|
.,.,
|
3100
3099
|
|
3101
|
-
module_eval(<<'.,.,', 'parser.y',
|
3100
|
+
module_eval(<<'.,.,', 'parser.y', 1080)
|
3102
3101
|
def _reduce_191(val, _values, result)
|
3103
3102
|
result = { val[0].value => val[2] }
|
3104
3103
|
|
@@ -3106,7 +3105,7 @@ module_eval(<<'.,.,', 'parser.y', 1081)
|
|
3106
3105
|
end
|
3107
3106
|
.,.,
|
3108
3107
|
|
3109
|
-
module_eval(<<'.,.,', 'parser.y',
|
3108
|
+
module_eval(<<'.,.,', 'parser.y', 1083)
|
3110
3109
|
def _reduce_192(val, _values, result)
|
3111
3110
|
result = { val[0].value => val[2] }
|
3112
3111
|
|
@@ -3114,7 +3113,7 @@ module_eval(<<'.,.,', 'parser.y', 1084)
|
|
3114
3113
|
end
|
3115
3114
|
.,.,
|
3116
3115
|
|
3117
|
-
module_eval(<<'.,.,', 'parser.y',
|
3116
|
+
module_eval(<<'.,.,', 'parser.y', 1086)
|
3118
3117
|
def _reduce_193(val, _values, result)
|
3119
3118
|
result = { val[0].value => val[1] }
|
3120
3119
|
|
@@ -3122,7 +3121,7 @@ module_eval(<<'.,.,', 'parser.y', 1087)
|
|
3122
3121
|
end
|
3123
3122
|
.,.,
|
3124
3123
|
|
3125
|
-
module_eval(<<'.,.,', 'parser.y',
|
3124
|
+
module_eval(<<'.,.,', 'parser.y', 1089)
|
3126
3125
|
def _reduce_194(val, _values, result)
|
3127
3126
|
result = { val[0].value => val[2] }
|
3128
3127
|
|
@@ -3130,7 +3129,7 @@ module_eval(<<'.,.,', 'parser.y', 1090)
|
|
3130
3129
|
end
|
3131
3130
|
.,.,
|
3132
3131
|
|
3133
|
-
module_eval(<<'.,.,', 'parser.y',
|
3132
|
+
module_eval(<<'.,.,', 'parser.y', 1092)
|
3134
3133
|
def _reduce_195(val, _values, result)
|
3135
3134
|
result = { val[0].value => val[2] }
|
3136
3135
|
|
@@ -3138,7 +3137,7 @@ module_eval(<<'.,.,', 'parser.y', 1093)
|
|
3138
3137
|
end
|
3139
3138
|
.,.,
|
3140
3139
|
|
3141
|
-
module_eval(<<'.,.,', 'parser.y',
|
3140
|
+
module_eval(<<'.,.,', 'parser.y', 1095)
|
3142
3141
|
def _reduce_196(val, _values, result)
|
3143
3142
|
result = { val[0].value => val[2] }
|
3144
3143
|
|
@@ -3148,7 +3147,7 @@ module_eval(<<'.,.,', 'parser.y', 1096)
|
|
3148
3147
|
|
3149
3148
|
# reduce 197 omitted
|
3150
3149
|
|
3151
|
-
module_eval(<<'.,.,', 'parser.y',
|
3150
|
+
module_eval(<<'.,.,', 'parser.y', 1101)
|
3152
3151
|
def _reduce_198(val, _values, result)
|
3153
3152
|
result = val[0]
|
3154
3153
|
|
@@ -3164,7 +3163,7 @@ module_eval(<<'.,.,', 'parser.y', 1102)
|
|
3164
3163
|
|
3165
3164
|
# reduce 202 omitted
|
3166
3165
|
|
3167
|
-
module_eval(<<'.,.,', 'parser.y',
|
3166
|
+
module_eval(<<'.,.,', 'parser.y', 1108)
|
3168
3167
|
def _reduce_203(val, _values, result)
|
3169
3168
|
location = (val[0] || val[1] || val[2]).location + val[3].location
|
3170
3169
|
|
@@ -3189,7 +3188,7 @@ module_eval(<<'.,.,', 'parser.y', 1109)
|
|
3189
3188
|
end
|
3190
3189
|
.,.,
|
3191
3190
|
|
3192
|
-
module_eval(<<'.,.,', 'parser.y',
|
3191
|
+
module_eval(<<'.,.,', 'parser.y', 1128)
|
3193
3192
|
def _reduce_204(val, _values, result)
|
3194
3193
|
result = LocatedValue.new(value: [val[0].value, nil], location: val[0].location)
|
3195
3194
|
|
@@ -3197,7 +3196,7 @@ module_eval(<<'.,.,', 'parser.y', 1129)
|
|
3197
3196
|
end
|
3198
3197
|
.,.,
|
3199
3198
|
|
3200
|
-
module_eval(<<'.,.,', 'parser.y',
|
3199
|
+
module_eval(<<'.,.,', 'parser.y', 1133)
|
3201
3200
|
def _reduce_205(val, _values, result)
|
3202
3201
|
location = val[0].location + val[4].location
|
3203
3202
|
type = Types::Function.new(
|
@@ -3217,7 +3216,7 @@ module_eval(<<'.,.,', 'parser.y', 1134)
|
|
3217
3216
|
end
|
3218
3217
|
.,.,
|
3219
3218
|
|
3220
|
-
module_eval(<<'.,.,', 'parser.y',
|
3219
|
+
module_eval(<<'.,.,', 'parser.y', 1148)
|
3221
3220
|
def _reduce_206(val, _values, result)
|
3222
3221
|
location = val[0].location + val[1].location
|
3223
3222
|
type = Types::Function.new(
|
@@ -3237,7 +3236,7 @@ module_eval(<<'.,.,', 'parser.y', 1149)
|
|
3237
3236
|
end
|
3238
3237
|
.,.,
|
3239
3238
|
|
3240
|
-
module_eval(<<'.,.,', 'parser.y',
|
3239
|
+
module_eval(<<'.,.,', 'parser.y', 1165)
|
3241
3240
|
def _reduce_207(val, _values, result)
|
3242
3241
|
result = val[2]
|
3243
3242
|
result[0].unshift(val[0])
|
@@ -3246,7 +3245,7 @@ module_eval(<<'.,.,', 'parser.y', 1166)
|
|
3246
3245
|
end
|
3247
3246
|
.,.,
|
3248
3247
|
|
3249
|
-
module_eval(<<'.,.,', 'parser.y',
|
3248
|
+
module_eval(<<'.,.,', 'parser.y', 1169)
|
3250
3249
|
def _reduce_208(val, _values, result)
|
3251
3250
|
result = empty_params_result
|
3252
3251
|
result[0].unshift(val[0])
|
@@ -3257,7 +3256,7 @@ module_eval(<<'.,.,', 'parser.y', 1170)
|
|
3257
3256
|
|
3258
3257
|
# reduce 209 omitted
|
3259
3258
|
|
3260
|
-
module_eval(<<'.,.,', 'parser.y',
|
3259
|
+
module_eval(<<'.,.,', 'parser.y', 1176)
|
3261
3260
|
def _reduce_210(val, _values, result)
|
3262
3261
|
result = val[2]
|
3263
3262
|
result[1].unshift(val[0])
|
@@ -3266,7 +3265,7 @@ module_eval(<<'.,.,', 'parser.y', 1177)
|
|
3266
3265
|
end
|
3267
3266
|
.,.,
|
3268
3267
|
|
3269
|
-
module_eval(<<'.,.,', 'parser.y',
|
3268
|
+
module_eval(<<'.,.,', 'parser.y', 1180)
|
3270
3269
|
def _reduce_211(val, _values, result)
|
3271
3270
|
result = empty_params_result
|
3272
3271
|
result[1].unshift(val[0])
|
@@ -3277,7 +3276,7 @@ module_eval(<<'.,.,', 'parser.y', 1181)
|
|
3277
3276
|
|
3278
3277
|
# reduce 212 omitted
|
3279
3278
|
|
3280
|
-
module_eval(<<'.,.,', 'parser.y',
|
3279
|
+
module_eval(<<'.,.,', 'parser.y', 1187)
|
3281
3280
|
def _reduce_213(val, _values, result)
|
3282
3281
|
result = val[2]
|
3283
3282
|
result[2] = val[0]
|
@@ -3286,7 +3285,7 @@ module_eval(<<'.,.,', 'parser.y', 1188)
|
|
3286
3285
|
end
|
3287
3286
|
.,.,
|
3288
3287
|
|
3289
|
-
module_eval(<<'.,.,', 'parser.y',
|
3288
|
+
module_eval(<<'.,.,', 'parser.y', 1191)
|
3290
3289
|
def _reduce_214(val, _values, result)
|
3291
3290
|
result = empty_params_result
|
3292
3291
|
result[2] = val[0]
|
@@ -3297,7 +3296,7 @@ module_eval(<<'.,.,', 'parser.y', 1192)
|
|
3297
3296
|
|
3298
3297
|
# reduce 215 omitted
|
3299
3298
|
|
3300
|
-
module_eval(<<'.,.,', 'parser.y',
|
3299
|
+
module_eval(<<'.,.,', 'parser.y', 1198)
|
3301
3300
|
def _reduce_216(val, _values, result)
|
3302
3301
|
result = val[2]
|
3303
3302
|
result[3].unshift(val[0])
|
@@ -3306,7 +3305,7 @@ module_eval(<<'.,.,', 'parser.y', 1199)
|
|
3306
3305
|
end
|
3307
3306
|
.,.,
|
3308
3307
|
|
3309
|
-
module_eval(<<'.,.,', 'parser.y',
|
3308
|
+
module_eval(<<'.,.,', 'parser.y', 1202)
|
3310
3309
|
def _reduce_217(val, _values, result)
|
3311
3310
|
result = empty_params_result
|
3312
3311
|
result[3].unshift(val[0])
|
@@ -3317,7 +3316,7 @@ module_eval(<<'.,.,', 'parser.y', 1203)
|
|
3317
3316
|
|
3318
3317
|
# reduce 218 omitted
|
3319
3318
|
|
3320
|
-
module_eval(<<'.,.,', 'parser.y',
|
3319
|
+
module_eval(<<'.,.,', 'parser.y', 1209)
|
3321
3320
|
def _reduce_219(val, _values, result)
|
3322
3321
|
result = empty_params_result
|
3323
3322
|
|
@@ -3325,7 +3324,7 @@ module_eval(<<'.,.,', 'parser.y', 1210)
|
|
3325
3324
|
end
|
3326
3325
|
.,.,
|
3327
3326
|
|
3328
|
-
module_eval(<<'.,.,', 'parser.y',
|
3327
|
+
module_eval(<<'.,.,', 'parser.y', 1212)
|
3329
3328
|
def _reduce_220(val, _values, result)
|
3330
3329
|
result = val[2]
|
3331
3330
|
result[4].merge!(val[0])
|
@@ -3334,7 +3333,7 @@ module_eval(<<'.,.,', 'parser.y', 1213)
|
|
3334
3333
|
end
|
3335
3334
|
.,.,
|
3336
3335
|
|
3337
|
-
module_eval(<<'.,.,', 'parser.y',
|
3336
|
+
module_eval(<<'.,.,', 'parser.y', 1216)
|
3338
3337
|
def _reduce_221(val, _values, result)
|
3339
3338
|
result = empty_params_result
|
3340
3339
|
result[4].merge!(val[0])
|
@@ -3343,7 +3342,7 @@ module_eval(<<'.,.,', 'parser.y', 1217)
|
|
3343
3342
|
end
|
3344
3343
|
.,.,
|
3345
3344
|
|
3346
|
-
module_eval(<<'.,.,', 'parser.y',
|
3345
|
+
module_eval(<<'.,.,', 'parser.y', 1220)
|
3347
3346
|
def _reduce_222(val, _values, result)
|
3348
3347
|
result = val[2]
|
3349
3348
|
result[5].merge!(val[0])
|
@@ -3352,7 +3351,7 @@ module_eval(<<'.,.,', 'parser.y', 1221)
|
|
3352
3351
|
end
|
3353
3352
|
.,.,
|
3354
3353
|
|
3355
|
-
module_eval(<<'.,.,', 'parser.y',
|
3354
|
+
module_eval(<<'.,.,', 'parser.y', 1224)
|
3356
3355
|
def _reduce_223(val, _values, result)
|
3357
3356
|
result = empty_params_result
|
3358
3357
|
result[5].merge!(val[0])
|
@@ -3361,7 +3360,7 @@ module_eval(<<'.,.,', 'parser.y', 1225)
|
|
3361
3360
|
end
|
3362
3361
|
.,.,
|
3363
3362
|
|
3364
|
-
module_eval(<<'.,.,', 'parser.y',
|
3363
|
+
module_eval(<<'.,.,', 'parser.y', 1228)
|
3365
3364
|
def _reduce_224(val, _values, result)
|
3366
3365
|
result = empty_params_result
|
3367
3366
|
result[6] = val[0]
|
@@ -3370,7 +3369,7 @@ module_eval(<<'.,.,', 'parser.y', 1229)
|
|
3370
3369
|
end
|
3371
3370
|
.,.,
|
3372
3371
|
|
3373
|
-
module_eval(<<'.,.,', 'parser.y',
|
3372
|
+
module_eval(<<'.,.,', 'parser.y', 1234)
|
3374
3373
|
def _reduce_225(val, _values, result)
|
3375
3374
|
loc = val[0].location
|
3376
3375
|
if var_name = val[1]
|
@@ -3388,7 +3387,7 @@ module_eval(<<'.,.,', 'parser.y', 1235)
|
|
3388
3387
|
end
|
3389
3388
|
.,.,
|
3390
3389
|
|
3391
|
-
module_eval(<<'.,.,', 'parser.y',
|
3390
|
+
module_eval(<<'.,.,', 'parser.y', 1249)
|
3392
3391
|
def _reduce_226(val, _values, result)
|
3393
3392
|
loc = val[0].location + val[1].location
|
3394
3393
|
if var_name = val[2]
|
@@ -3406,7 +3405,7 @@ module_eval(<<'.,.,', 'parser.y', 1250)
|
|
3406
3405
|
end
|
3407
3406
|
.,.,
|
3408
3407
|
|
3409
|
-
module_eval(<<'.,.,', 'parser.y',
|
3408
|
+
module_eval(<<'.,.,', 'parser.y', 1264)
|
3410
3409
|
def _reduce_227(val, _values, result)
|
3411
3410
|
loc = val[0].location + val[1].location
|
3412
3411
|
if var_name = val[2]
|
@@ -3424,7 +3423,7 @@ module_eval(<<'.,.,', 'parser.y', 1265)
|
|
3424
3423
|
end
|
3425
3424
|
.,.,
|
3426
3425
|
|
3427
|
-
module_eval(<<'.,.,', 'parser.y',
|
3426
|
+
module_eval(<<'.,.,', 'parser.y', 1279)
|
3428
3427
|
def _reduce_228(val, _values, result)
|
3429
3428
|
loc = val[0].location + val[1].location
|
3430
3429
|
if var_name = val[2]
|
@@ -3444,7 +3443,7 @@ module_eval(<<'.,.,', 'parser.y', 1280)
|
|
3444
3443
|
end
|
3445
3444
|
.,.,
|
3446
3445
|
|
3447
|
-
module_eval(<<'.,.,', 'parser.y',
|
3446
|
+
module_eval(<<'.,.,', 'parser.y', 1296)
|
3448
3447
|
def _reduce_229(val, _values, result)
|
3449
3448
|
loc = val[0].location + val[2].location
|
3450
3449
|
if var_name = val[3]
|
@@ -3464,7 +3463,7 @@ module_eval(<<'.,.,', 'parser.y', 1297)
|
|
3464
3463
|
end
|
3465
3464
|
.,.,
|
3466
3465
|
|
3467
|
-
module_eval(<<'.,.,', 'parser.y',
|
3466
|
+
module_eval(<<'.,.,', 'parser.y', 1313)
|
3468
3467
|
def _reduce_230(val, _values, result)
|
3469
3468
|
loc = val[0].location + val[1].location
|
3470
3469
|
if var_name = val[2]
|
@@ -3491,7 +3490,7 @@ module_eval(<<'.,.,', 'parser.y', 1314)
|
|
3491
3490
|
|
3492
3491
|
# reduce 234 omitted
|
3493
3492
|
|
3494
|
-
module_eval(<<'.,.,', 'parser.y',
|
3493
|
+
module_eval(<<'.,.,', 'parser.y', 1332)
|
3495
3494
|
def _reduce_235(val, _values, result)
|
3496
3495
|
namespace = val[0]&.value || Namespace.empty
|
3497
3496
|
name = val[1].value.to_sym
|
@@ -3509,7 +3508,7 @@ module_eval(<<'.,.,', 'parser.y', 1333)
|
|
3509
3508
|
|
3510
3509
|
# reduce 238 omitted
|
3511
3510
|
|
3512
|
-
module_eval(<<'.,.,', 'parser.y',
|
3511
|
+
module_eval(<<'.,.,', 'parser.y', 1344)
|
3513
3512
|
def _reduce_239(val, _values, result)
|
3514
3513
|
namespace = val[0]&.value || Namespace.empty
|
3515
3514
|
name = val[1].value.to_sym
|
@@ -3521,7 +3520,7 @@ module_eval(<<'.,.,', 'parser.y', 1345)
|
|
3521
3520
|
end
|
3522
3521
|
.,.,
|
3523
3522
|
|
3524
|
-
module_eval(<<'.,.,', 'parser.y',
|
3523
|
+
module_eval(<<'.,.,', 'parser.y', 1353)
|
3525
3524
|
def _reduce_240(val, _values, result)
|
3526
3525
|
namespace = val[0]&.value || Namespace.empty
|
3527
3526
|
name = val[1].value.to_sym
|
@@ -3533,7 +3532,7 @@ module_eval(<<'.,.,', 'parser.y', 1354)
|
|
3533
3532
|
end
|
3534
3533
|
.,.,
|
3535
3534
|
|
3536
|
-
module_eval(<<'.,.,', 'parser.y',
|
3535
|
+
module_eval(<<'.,.,', 'parser.y', 1362)
|
3537
3536
|
def _reduce_241(val, _values, result)
|
3538
3537
|
namespace = val[0]&.value || Namespace.empty
|
3539
3538
|
name = val[1].value.to_sym
|
@@ -3545,7 +3544,7 @@ module_eval(<<'.,.,', 'parser.y', 1363)
|
|
3545
3544
|
end
|
3546
3545
|
.,.,
|
3547
3546
|
|
3548
|
-
module_eval(<<'.,.,', 'parser.y',
|
3547
|
+
module_eval(<<'.,.,', 'parser.y', 1372)
|
3549
3548
|
def _reduce_242(val, _values, result)
|
3550
3549
|
result = nil
|
3551
3550
|
|
@@ -3553,7 +3552,7 @@ module_eval(<<'.,.,', 'parser.y', 1373)
|
|
3553
3552
|
end
|
3554
3553
|
.,.,
|
3555
3554
|
|
3556
|
-
module_eval(<<'.,.,', 'parser.y',
|
3555
|
+
module_eval(<<'.,.,', 'parser.y', 1375)
|
3557
3556
|
def _reduce_243(val, _values, result)
|
3558
3557
|
result = LocatedValue.new(value: Namespace.root, location: val[0].location)
|
3559
3558
|
|
@@ -3561,7 +3560,7 @@ module_eval(<<'.,.,', 'parser.y', 1376)
|
|
3561
3560
|
end
|
3562
3561
|
.,.,
|
3563
3562
|
|
3564
|
-
module_eval(<<'.,.,', 'parser.y',
|
3563
|
+
module_eval(<<'.,.,', 'parser.y', 1378)
|
3565
3564
|
def _reduce_244(val, _values, result)
|
3566
3565
|
namespace = Namespace.parse(val[1].value).absolute!
|
3567
3566
|
result = LocatedValue.new(value: namespace, location: val[0].location + val[1].location)
|
@@ -3570,7 +3569,7 @@ module_eval(<<'.,.,', 'parser.y', 1379)
|
|
3570
3569
|
end
|
3571
3570
|
.,.,
|
3572
3571
|
|
3573
|
-
module_eval(<<'.,.,', 'parser.y',
|
3572
|
+
module_eval(<<'.,.,', 'parser.y', 1382)
|
3574
3573
|
def _reduce_245(val, _values, result)
|
3575
3574
|
namespace = Namespace.parse(val[0].value)
|
3576
3575
|
result = LocatedValue.new(value: namespace, location: val[0].location)
|