File tree 2 files changed +3
-8
lines changed
compiler/src/dotty/tools/dotc/transform/init
2 files changed +3
-8
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
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ object Errors {
66
66
def show (using Context ): String =
67
67
" Access non-initialized field " + field.name.show + " ."
68
68
69
- override def report (using Context ): Unit = report.warning(show + stacktrace, field.sourcePos)
69
+ override def issue (using Context ): Unit = report.warning(show + stacktrace, field.sourcePos)
70
70
}
71
71
72
72
/** Promote `this` under initialization to fully-initialized */
You can’t perform that action at this time.
0 commit comments