File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
compiler/src/dotty/tools/dotc/transform/init Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -39,25 +39,20 @@ object Effects {
3939 * - the selection chain on a potential is too long
4040 */
4141 case class Promote (potential : Potential )(val source : Tree ) extends Effect {
42- def size : Int = potential.size
43- def show (using Context ): String =
44- potential.show + " ↑"
42+ def show (using Context ): String = potential.show + " ↑"
4543 }
4644
4745 /** Field access, `a.f` */
4846 case class FieldAccess (potential : Potential , field : Symbol )(val source : Tree ) extends Effect {
4947 assert(field != NoSymbol )
5048
51- def size : Int = potential.size
52- def show (using Context ): String =
53- potential.show + " ." + field.name.show + " !"
49+ def show (using Context ): String = potential.show + " ." + field.name.show + " !"
5450 }
5551
5652 /** Method call, `a.m()` */
5753 case class MethodCall (potential : Potential , method : Symbol )(val source : Tree ) extends Effect {
5854 assert(method != NoSymbol )
5955
60- def size : Int = potential.size
6156 def show (using Context ): String = potential.show + " ." + method.name.show + " !"
6257 }
6358
You can’t perform that action at this time.
0 commit comments