Skip to content

Commit d0bd62c

Browse files
committed
Change Apply to extend WithEndMarker
1 parent 9ac941c commit d0bd62c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ object Trees {
518518

519519
/** fun(args) */
520520
case class Apply[+T <: Untyped] private[ast] (fun: Tree[T], args: List[Tree[T]])(implicit @constructorOnly src: SourceFile)
521-
extends GenericApply[T] {
521+
extends GenericApply[T] with WithEndMarker[T] {
522522
type ThisTree[+T <: Untyped] = Apply[T]
523523

524524
def setApplyKind(kind: ApplyKind) =
@@ -530,13 +530,6 @@ object Trees {
530530
*/
531531
def applyKind: ApplyKind =
532532
attachmentOrElse(untpd.KindOfApply, ApplyKind.Regular)
533-
534-
def setEndMarker(): this.type =
535-
putAttachment(untpd.HasEndMarker, ())
536-
this
537-
538-
def hasEndMarker: Boolean =
539-
hasAttachment(untpd.HasEndMarker)
540533
}
541534

542535
/** fun[args] */

0 commit comments

Comments
 (0)