File tree 1 file changed +2
-7
lines changed
compiler/src/dotty/tools/dotc/transform/init
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -39,25 +39,20 @@ object Effects {
39
39
* - the selection chain on a potential is too long
40
40
*/
41
41
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 + " ↑"
45
43
}
46
44
47
45
/** Field access, `a.f` */
48
46
case class FieldAccess (potential : Potential , field : Symbol )(val source : Tree ) extends Effect {
49
47
assert(field != NoSymbol )
50
48
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 + " !"
54
50
}
55
51
56
52
/** Method call, `a.m()` */
57
53
case class MethodCall (potential : Potential , method : Symbol )(val source : Tree ) extends Effect {
58
54
assert(method != NoSymbol )
59
55
60
- def size : Int = potential.size
61
56
def show (using Context ): String = potential.show + " ." + method.name.show + " !"
62
57
}
63
58
You can’t perform that action at this time.
0 commit comments