Commit a5d8cac
committed
Use static names for anonymous parameters
The original RBS rewriter runs after the parser has assigned unique
names to anonymous parameters, which it can then pull out of the method
definition. With the Prism RBS rewriter, we can't generate unique names
until later on when the translator is run. We can use static names
instead as `*`, `**`, and `&` are guaranteed to be unique anyway (in
fact this is already the case for the block param).1 parent c4688c1 commit a5d8cac
File tree
3 files changed
+17
-13
lines changed- parser/prism
- rbs/prism
3 files changed
+17
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2840 | 2840 | | |
2841 | 2841 | | |
2842 | 2842 | | |
2843 | | - | |
| 2843 | + | |
2844 | 2844 | | |
2845 | 2845 | | |
2846 | 2846 | | |
| |||
4208 | 4208 | | |
4209 | 4209 | | |
4210 | 4210 | | |
4211 | | - | |
| 4211 | + | |
4212 | 4212 | | |
4213 | 4213 | | |
4214 | 4214 | | |
| |||
5408 | 5408 | | |
5409 | 5409 | | |
5410 | 5410 | | |
5411 | | - | |
5412 | | - | |
5413 | | - | |
5414 | | - | |
5415 | 5411 | | |
5416 | 5412 | | |
5417 | 5413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 171 | | |
175 | 172 | | |
176 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
705 | | - | |
706 | | - | |
707 | | - | |
708 | | - | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
709 | 720 | | |
710 | 721 | | |
711 | 722 | | |
| |||
0 commit comments