1
1
[[syntax trees at end of lambdalift]] // newSource1.scala
2
2
package <empty> {
3
3
class T extends Object {
4
- <paramaccessor> private[this] val classParam: Int = _;
5
- def <init>(classParam: Int ): T = {
4
+ <paramaccessor> private[this] val classParam: String = _;
5
+ def <init>(classParam: String ): T = {
6
6
T.super.<init>();
7
7
()
8
8
};
9
- private[this] val field: Int = 0 ;
10
- <stable> <accessor> def field(): Int = T.this.field;
11
- def foo(methodParam: Int ): Function0 = {
12
- val methodLocal: Int = 0 ;
9
+ private[this] val field: String = "" ;
10
+ <stable> <accessor> def field(): String = T.this.field;
11
+ def foo(methodParam: String ): Function0 = {
12
+ val methodLocal: String = "" ;
13
13
{
14
14
(() => T.this.$anonfun$1(methodParam, methodLocal)).$asInstanceOf[Function0]()
15
15
}
16
16
};
17
- def bar(barParam: Int ): Object = {
17
+ def bar(barParam: String ): Object = {
18
18
@volatile var MethodLocalObject$module: runtime.VolatileObjectRef = scala.runtime.VolatileObjectRef.zero();
19
19
T.this.MethodLocalObject$1(barParam, MethodLocalObject$module)
20
20
};
21
- def tryy(tryyParam: Int ): Function0 = {
22
- var tryyLocal: runtime.IntRef = scala.runtime.IntRef .create(0 );
21
+ def tryy(tryyParam: String ): Function0 = {
22
+ var tryyLocal: runtime.ObjectRef = scala.runtime.ObjectRef .create("" );
23
23
{
24
- (() => T.this.$anonfun$2( tryyParam, tryyLocal)).$asInstanceOf[ Function0]( )
24
+ (new <$anon: Function0>( T.this, tryyParam, tryyLocal): Function0)
25
25
}
26
26
};
27
- final <artifact> private[this] def $anonfun$1(methodParam$1: Int , methodLocal$1: Int ): Int = T.this.classParam.+(T.this.field()).+(methodParam$1).+(methodLocal$1);
27
+ final <artifact> private[this] def $anonfun$1(methodParam$1: String , methodLocal$1: String ): String = T.this.classParam.+(T.this.field()).+(methodParam$1).+(methodLocal$1);
28
28
abstract trait MethodLocalTrait$1 extends Object {
29
29
<synthetic> <stable> <artifact> def $outer(): T
30
30
};
31
31
object MethodLocalObject$2 extends Object with T#MethodLocalTrait$1 {
32
- def <init>($outer: T, barParam$1: Int ): T#MethodLocalObject$2.type = {
32
+ def <init>($outer: T, barParam$1: String ): T#MethodLocalObject$2.type = {
33
33
MethodLocalObject$2.super.<init>();
34
34
MethodLocalObject$2.this.$asInstanceOf[T#MethodLocalTrait$1$class]()./*MethodLocalTrait$1$class*/$init$(barParam$1);
35
35
()
@@ -38,19 +38,34 @@ package <empty> {
38
38
<synthetic> <stable> <artifact> def $outer(): T = MethodLocalObject$2.this.$outer;
39
39
<synthetic> <stable> <artifact> def $outer(): T = MethodLocalObject$2.this.$outer
40
40
};
41
- final <stable> private[this] def MethodLocalObject$1(barParam$1: Int , MethodLocalObject$module$1: runtime.VolatileObjectRef): T#MethodLocalObject$2.type = {
41
+ final <stable> private[this] def MethodLocalObject$1(barParam$1: String , MethodLocalObject$module$1: runtime.VolatileObjectRef): T#MethodLocalObject$2.type = {
42
42
MethodLocalObject$module$1.elem = new T#MethodLocalObject$2.type(T.this, barParam$1);
43
43
MethodLocalObject$module$1.elem.$asInstanceOf[T#MethodLocalObject$2.type]()
44
44
};
45
45
abstract trait MethodLocalTrait$1$class extends Object with T#MethodLocalTrait$1 {
46
- def /*MethodLocalTrait$1$class*/$init$(barParam$1: Int ): Unit = {
46
+ def /*MethodLocalTrait$1$class*/$init$(barParam$1: String ): Unit = {
47
47
()
48
48
};
49
- scala.this.Predef.print(scala.Int.box( barParam$1) )
49
+ scala.this.Predef.print(barParam$1)
50
50
};
51
- final <artifact> private[this] def $anonfun$2(tryyParam$1: Int, tryyLocal$1: runtime.IntRef): Unit = try {
52
- tryyLocal$1.elem = tryyParam$1
53
- } finally ()
51
+ @SerialVersionUID(value = 0) final <synthetic> class $anonfun$tryy$1 extends scala.runtime.AbstractFunction0$mcV$sp with Serializable {
52
+ def <init>($outer: T, tryyParam$1: String, tryyLocal$1: runtime.ObjectRef): <$anon: Function0> = {
53
+ $anonfun$tryy$1.super.<init>();
54
+ ()
55
+ };
56
+ final def apply(): Unit = $anonfun$tryy$1.this.apply$mcV$sp();
57
+ <specialized> def apply$mcV$sp(): Unit = try {
58
+ $anonfun$tryy$1.this.tryyLocal$1.elem = $anonfun$tryy$1.this.tryyParam$1
59
+ } finally ();
60
+ <synthetic> <paramaccessor> <artifact> private[this] val $outer: T = _;
61
+ <synthetic> <stable> <artifact> def $outer(): T = $anonfun$tryy$1.this.$outer;
62
+ final <bridge> <artifact> def apply(): Object = {
63
+ $anonfun$tryy$1.this.apply();
64
+ scala.runtime.BoxedUnit.UNIT
65
+ };
66
+ <synthetic> <paramaccessor> private[this] val tryyParam$1: String = _;
67
+ <synthetic> <paramaccessor> private[this] val tryyLocal$1: runtime.ObjectRef = _
68
+ }
54
69
}
55
70
}
56
71
0 commit comments