File tree 1 file changed +1
-7
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -687,14 +687,8 @@ object ProtoTypes {
687
687
688
688
/** Dummy tree to be used as an argument of a FunProto or ViewProto type */
689
689
object dummyTreeOfType {
690
- /*
691
- * A property indicating that the given tree was created with dummyTreeOfType.
692
- * It is sometimes necessary to detect the dummy trees to avoid unwanted readaptations on them.
693
- */
694
- val IsDummyTree = new Property .Key [Unit ]
695
-
696
690
def apply (tp : Type )(implicit src : SourceFile ): Tree =
697
- ( untpd.Literal (Constant (null )) withTypeUnchecked tp).withAttachment( IsDummyTree , ())
691
+ untpd.Literal (Constant (null )) withTypeUnchecked tp
698
692
def unapply (tree : untpd.Tree ): Option [Type ] = tree match {
699
693
case Literal (Constant (null )) => Some (tree.typeOpt)
700
694
case _ => None
You can’t perform that action at this time.
0 commit comments