|
1 | 1 | [[syntax trees at end of patmat]] // newSource1.scala
|
2 |
| -[0:187]package [0:0]<empty> { |
3 |
| - [0:187]class Switch extends [13:187][187]scala.AnyRef { |
4 |
| - [187]def <init>(): [13]Switch = [187]{ |
5 |
| - [187][187][187]Switch.super.<init>(); |
| 2 | +[0:216]package [0:0]<empty> { |
| 3 | + [0:216]class Switch extends [13:216][216]scala.AnyRef { |
| 4 | + [216]def <init>(): [13]Switch = [216]{ |
| 5 | + [216][216][216]Switch.super.<init>(); |
6 | 6 | [13]()
|
7 | 7 | };
|
8 |
| - [17:185]def switch([28:37]s: [31:37]<type: [31:37]scala.Predef.String>, [39:52]cond: [45:52]<type: [45:52]scala.Boolean>): [21]Int = [56:57]{ |
| 8 | + [17:214]def switch([28:37]s: [31:37]<type: [31:37]scala.Predef.String>, [39:52]cond: [45:52]<type: [45:52]scala.Boolean>): [21]Int = [56:57]{ |
9 | 9 | [56:57]case <synthetic> val x1: [56]String = [56:57]s;
|
10 | 10 | [56:57][56:57]x1 match {
|
11 | 11 | [56:57]case [75:81]"AaAa" => [93:94]1
|
|
14 | 14 | [151:152]3
|
15 | 15 | else
|
16 | 16 | [180:181]4
|
| 17 | + [56:57]case [56:57]([191:197]"CcCc"| [200:205]"Cc2") => [209:210]5 |
17 | 18 | [56:57]case [56:57]_ => [56:57]throw [56:57][56:57][56:57]new [56:57]MatchError([56:57]x1)
|
18 | 19 | }
|
19 | 20 | }
|
20 | 21 | }
|
21 | 22 | }
|
22 | 23 |
|
23 | 24 | [[syntax trees at end of cleanup]] // newSource1.scala
|
24 |
| -[0:187]package [0:0]<empty> { |
25 |
| - [0:187]class Switch extends [13:187][13:187]Object { |
26 |
| - [17:185]def switch([28:37]s: [31:37]<type: [31:37]scala.Predef.String>, [39:52]cond: [45:52]<type: [45:52]scala.Boolean>): [21]Int = [56:57]{ |
| 25 | +[0:216]package [0:0]<empty> { |
| 26 | + [0:216]class Switch extends [13:216][13:216]Object { |
| 27 | + [17:214]def switch([28:37]s: [31:37]<type: [31:37]scala.Predef.String>, [39:52]cond: [45:52]<type: [45:52]scala.Boolean>): [21]Int = [56:57]{ |
27 | 28 | [56:57]case <synthetic> val x1: [56]String = [56:57]s;
|
28 | 29 | [56:57]{
|
29 | 30 | [56:139][56:57]if ([56][56]x1.eq([56]null))
|
30 | 31 | [56]0
|
31 | 32 | else
|
32 | 33 | [56][56]x1.hashCode() match {
|
| 34 | + [56:57]case [56]67506 => [56:57]if ([56][56][56]"Cc2".equals([56]x1)) |
| 35 | + [56][56]case4() |
| 36 | + else |
| 37 | + [56][56]matchEnd2() |
33 | 38 | [75:81]case [56]2031744 => [75:81]if ([75][75][75]"AaAa".equals([75]x1))
|
34 | 39 | [75][75]case1()
|
35 | 40 | else
|
|
38 | 43 | [133][133]case3()
|
39 | 44 | else
|
40 | 45 | [56][56]matchEnd2()
|
| 46 | + [56:57]case [56]2093312 => [56:57]if ([56][56][56]"CcCc".equals([56]x1)) |
| 47 | + [56][56]case4() |
| 48 | + else |
| 49 | + [56][56]matchEnd2() |
41 | 50 | [104:110]case [56]3003444 => [104:110]if ([104][104][104]"asdf".equals([104]x1))
|
42 | 51 | [104][104]case2()
|
43 | 52 | else
|
|
56 | 65 | else
|
57 | 66 | [180:181]4)
|
58 | 67 | };
|
| 68 | + [56]case4(){ |
| 69 | + [56][56]matchEnd1([209:210]5) |
| 70 | + }; |
59 | 71 | [56]matchEnd2(){
|
60 | 72 | [56][56]matchEnd1([56:57]throw [56:57][56:57][56:57]new [56:57]MatchError([56:57]x1))
|
61 | 73 | };
|
|
64 | 76 | }
|
65 | 77 | }
|
66 | 78 | };
|
67 |
| - [187]def <init>(): [13]Switch = [187]{ |
68 |
| - [187][187][187]Switch.super.<init>(); |
| 79 | + [216]def <init>(): [13]Switch = [216]{ |
| 80 | + [216][216][216]Switch.super.<init>(); |
69 | 81 | [13]()
|
70 | 82 | }
|
71 | 83 | }
|
|
0 commit comments