@@ -497,9 +497,9 @@ object Trees {
497497 extends TermTree [T ] {
498498 type ThisTree [- T >: Untyped ] = If [T ]
499499 }
500- class RewriteIf [T >: Untyped ] private [ast] (cond : Tree [T ], thenp : Tree [T ], elsep : Tree [T ])
500+ class InlineIf [T >: Untyped ] private [ast] (cond : Tree [T ], thenp : Tree [T ], elsep : Tree [T ])
501501 extends If (cond, thenp, elsep) {
502- override def toString = s " RewriteIf ( $cond, $thenp, $elsep) "
502+ override def toString = s " InlineIf ( $cond, $thenp, $elsep) "
503503 }
504504
505505 /** A closure with an environment and a reference to a method.
@@ -521,9 +521,9 @@ object Trees {
521521 extends TermTree [T ] {
522522 type ThisTree [- T >: Untyped ] = Match [T ]
523523 }
524- class RewriteMatch [T >: Untyped ] private [ast] (selector : Tree [T ], cases : List [CaseDef [T ]])
524+ class InlineMatch [T >: Untyped ] private [ast] (selector : Tree [T ], cases : List [CaseDef [T ]])
525525 extends Match (selector, cases) {
526- override def toString = s " RewriteMatch ( $selector, $cases) "
526+ override def toString = s " InlineMatch ( $selector, $cases) "
527527 }
528528
529529 /** case pat if guard => body; only appears as child of a Match */
@@ -904,10 +904,10 @@ object Trees {
904904 type Assign = Trees .Assign [T ]
905905 type Block = Trees .Block [T ]
906906 type If = Trees .If [T ]
907- type RewriteIf = Trees .RewriteIf [T ]
907+ type InlineIf = Trees .InlineIf [T ]
908908 type Closure = Trees .Closure [T ]
909909 type Match = Trees .Match [T ]
910- type RewriteMatch = Trees .RewriteMatch [T ]
910+ type InlineMatch = Trees .InlineMatch [T ]
911911 type CaseDef = Trees .CaseDef [T ]
912912 type Labeled = Trees .Labeled [T ]
913913 type Return = Trees .Return [T ]
@@ -1038,9 +1038,9 @@ object Trees {
10381038 case _ => finalize(tree, untpd.Block (stats, expr))
10391039 }
10401040 def If (tree : Tree )(cond : Tree , thenp : Tree , elsep : Tree )(implicit ctx : Context ): If = tree match {
1041- case tree : RewriteIf =>
1041+ case tree : InlineIf =>
10421042 if ((cond eq tree.cond) && (thenp eq tree.thenp) && (elsep eq tree.elsep)) tree
1043- else finalize(tree, untpd.RewriteIf (cond, thenp, elsep))
1043+ else finalize(tree, untpd.InlineIf (cond, thenp, elsep))
10441044 case tree : If if (cond eq tree.cond) && (thenp eq tree.thenp) && (elsep eq tree.elsep) => tree
10451045 case _ => finalize(tree, untpd.If (cond, thenp, elsep))
10461046 }
@@ -1049,9 +1049,9 @@ object Trees {
10491049 case _ => finalize(tree, untpd.Closure (env, meth, tpt))
10501050 }
10511051 def Match (tree : Tree )(selector : Tree , cases : List [CaseDef ])(implicit ctx : Context ): Match = tree match {
1052- case tree : RewriteMatch =>
1052+ case tree : InlineMatch =>
10531053 if ((selector eq tree.selector) && (cases eq tree.cases)) tree
1054- else finalize(tree, untpd.RewriteMatch (selector, cases))
1054+ else finalize(tree, untpd.InlineMatch (selector, cases))
10551055 case tree : Match if (selector eq tree.selector) && (cases eq tree.cases) => tree
10561056 case _ => finalize(tree, untpd.Match (selector, cases))
10571057 }
0 commit comments