@@ -55,7 +55,9 @@ class Compiler {
55
55
new ExtensionMethods , // Expand methods of value classes with extension methods
56
56
new ExpandSAMs , // Expand single abstract method closures to anonymous classes
57
57
new TailRec , // Rewrite tail recursion to loops
58
+ new ByNameClosures , // Expand arguments to by-name parameters to closures
58
59
new LiftTry , // Put try expressions that might execute on non-empty stacks into their own methods
60
+ new HoistSuperArgs , // Hoist complex arguments of supercalls to enclosing scope
59
61
new ClassOf ), // Expand `Predef.classOf` calls.
60
62
List (new TryCatchPatterns , // Compile cases in try/catch
61
63
new PatternMatcher , // Compile pattern matches
@@ -69,7 +71,7 @@ class Compiler {
69
71
new SeqLiterals , // Express vararg arguments as arrays
70
72
new InterceptedMethods , // Special handling of `==`, `|=`, `getClass` methods
71
73
new Getters , // Replace non-private vals and vars with getter defs (fields are added later)
72
- new ElimByName , // Expand by-name parameters and arguments
74
+ new ElimByName , // Expand by-name parameter references
73
75
new AugmentScala2Traits , // Expand traits defined in Scala 2.11 to simulate old-style rewritings
74
76
new ResolveSuper , // Implement super accessors and add forwarders to trait methods
75
77
new PrimitiveForwarders , // Add forwarders to trait methods that have a mismatch between generic and primitives
0 commit comments