File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/reporting Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,9 +16,10 @@ abstract class Profile:
16
16
17
17
object Profile :
18
18
def current (using Context ): Profile =
19
- if ctx.run == null then NoProfile else ctx.run.profile
19
+ val run = ctx.run
20
+ if run == null then NoProfile else run.profile
20
21
21
- private val TastyFactor = 40
22
+ private val TastyFactor = 50
22
23
23
24
class Info :
24
25
var lineCount : Int = 0
@@ -34,7 +35,7 @@ class ActiveProfile extends Profile:
34
35
private val junkInfo = new Profile .Info
35
36
36
37
private def curInfo (using Context ): Profile .Info =
37
- val unit = ctx.compilationUnit
38
+ val unit : CompilationUnit | Null = ctx.compilationUnit
38
39
if unit == null then junkInfo else unitProfile(unit)
39
40
40
41
def unitProfile (unit : CompilationUnit ): Profile .Info =
You can’t perform that action at this time.
0 commit comments