We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c17a164 commit f947236Copy full SHA for f947236
compiler/src/dotty/tools/dotc/reporting/Profile.scala
@@ -11,6 +11,7 @@ import util.Spans.{Span, NoSpan}
11
import Decorators.i
12
import parsing.Scanners.Scanner
13
import io.AbstractFile
14
+import annotation.internal.sharable
15
16
abstract class Profile:
17
def unitProfile(unit: CompilationUnit): Profile.Info
@@ -28,7 +29,7 @@ object Profile:
28
29
inline val TastyChunkSize = 50
30
31
case class MethodInfo(meth: Symbol, size: Int, span: Span)
- object NoInfo extends MethodInfo(NoSymbol, 0, NoSpan)
32
+ @sharable object NoInfo extends MethodInfo(NoSymbol, 0, NoSpan)
33
34
class Info(details: Int):
35
var lineCount: Int = 0
0 commit comments