File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -687,14 +687,8 @@ object ProtoTypes {
687687
688688 /** Dummy tree to be used as an argument of a FunProto or ViewProto type */
689689 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-
696690 def apply (tp : Type )(implicit src : SourceFile ): Tree =
697- ( untpd.Literal (Constant (null )) withTypeUnchecked tp).withAttachment( IsDummyTree , ())
691+ untpd.Literal (Constant (null )) withTypeUnchecked tp
698692 def unapply (tree : untpd.Tree ): Option [Type ] = tree match {
699693 case Literal (Constant (null )) => Some (tree.typeOpt)
700694 case _ => None
You can’t perform that action at this time.
0 commit comments