You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Alternatives of patterns, eliminated by compiler phases patmat/explicitouter, except for
540
+
/** Alternatives of patterns.
541
+
*
542
+
* Eliminated by compiler phases Eliminated by compiler phases patmat (in the new pattern matcher of 2.10) or explicitouter (in the old pre-2.10 pattern matcher),
543
+
* except for
542
544
* occurrences in encoded Switch stmt (i.e. remaining Match(CaseDef(...)))
543
545
*/
544
546
typeAlternative>:Null<:TermTree
@@ -562,7 +564,8 @@ trait Trees { self: Universe =>
562
564
}
563
565
564
566
/** Repetition of pattern.
565
-
* Eliminated by compiler phase patmat/explicitouter.
567
+
*
568
+
* Eliminated by compiler phases patmat (in the new pattern matcher of 2.10) or explicitouter (in the old pre-2.10 pattern matcher).
566
569
*/
567
570
typeStar>:Null<:TermTree
568
571
@@ -585,7 +588,8 @@ trait Trees { self: Universe =>
585
588
}
586
589
587
590
/** Bind a variable to a rhs pattern.
588
-
* Eliminated by compiler phase patmat/explicitouter.
591
+
*
592
+
* Eliminated by compiler phases patmat (in the new pattern matcher of 2.10) or explicitouter (in the old pre-2.10 pattern matcher).
589
593
*
590
594
* @paramname
591
595
* @parambody
@@ -610,12 +614,9 @@ trait Trees { self: Universe =>
610
614
defunapply(bind: Bind):Option[(Name, Tree)]
611
615
}
612
616
613
-
// TODO: evaluate if UnApply can be removed or at least moved out of reflection.
614
617
/**
615
618
* Used to represent `unapply` methods in pattern matching.
616
619
*
617
-
* Introduced by typer, eliminated by patmat/explicitouter.
618
-
*
619
620
* For example:
620
621
* {{{
621
622
* 2 match { case Foo(x) => x }
@@ -637,6 +638,8 @@ trait Trees { self: Universe =>
637
638
* EmptyTree,
638
639
* Ident(newTermName("x")))))
639
640
* }}}
641
+
*
642
+
* Introduced by typer. Eliminated by compiler phases patmat (in the new pattern matcher of 2.10) or explicitouter (in the old pre-2.10 pattern matcher).
640
643
*/
641
644
typeUnApply>:Null<:TermTree
642
645
@@ -705,7 +708,7 @@ trait Trees { self: Universe =>
705
708
*
706
709
* vparams => body
707
710
*
708
-
* The symbol of a Function is a synthetic TermSymbol having its name set to nme.ANON_FUN_NAME.
711
+
* The symbol of a Function is a synthetic TermSymbol.
709
712
* It is the owner of the function's parameters.
710
713
*/
711
714
abstractclassFunctionExtractor {
@@ -786,10 +789,10 @@ trait Trees { self: Universe =>
0 commit comments