@@ -2,20 +2,33 @@ package dotty.tools
22package dotc
33package core
44
5- import scala .annotation .{threadUnsafe => tu }
6- import Types ._ , Contexts ._ , Symbols ._ , SymDenotations ._ , StdNames ._ , Names ._ , Phases ._
7- import Flags ._ , Scopes ._ , Decorators ._ , NameOps ._ , Periods ._ , NullOpsDecorator ._
5+ import scala .annotation .threadUnsafe as tu
6+ import Types .*
7+ import Contexts .*
8+ import Symbols .*
9+ import SymDenotations .*
10+ import StdNames .*
11+ import Names .*
12+ import Phases .*
13+ import Flags .*
14+ import Scopes .*
15+ import Decorators .*
16+ import NameOps .*
17+ import Periods .*
18+ import NullOpsDecorator .*
819import unpickleScala2 .Scala2Unpickler .ensureConstructor
20+
921import scala .collection .mutable
1022import collection .mutable
1123import Denotations .{SingleDenotation , staticRef }
12- import util .{SimpleIdentityMap , SourceFile , NoSource }
24+ import util .{NoSource , SimpleIdentityMap , SourceFile }
1325import typer .ImportInfo .RootRef
1426import Comments .CommentsContext
1527import Comments .Comment
1628import util .Spans .NoSpan
1729import Symbols .requiredModuleRef
18- import cc .{CapturingType , CaptureSet , EventuallyCapturingType }
30+ import cc .{CaptureSet , CapturingType , EventuallyCapturingType }
31+ import dotty .tools .dotc .transform .LazyVals .lazyNme
1932
2033import scala .annotation .tailrec
2134
@@ -1985,6 +1998,12 @@ class Definitions {
19851998 addSyntheticSymbolsComments
19861999 }
19872000
2001+ /** Definitions used in Lazy Vals implementation */
2002+ val LazyValsModuleName = " scala.runtime.LazyVals"
2003+ @ tu lazy val LazyValsModule = requiredModule(LazyValsModuleName )
2004+ @ tu lazy val LazyValsWaitingState = requiredClass(s " $LazyValsModuleName.Waiting " )
2005+ @ tu lazy val LazyValsControlState = requiredClass(s " $LazyValsModuleName.LazyValControlState " )
2006+
19882007 def addSyntheticSymbolsComments (using Context ): Unit =
19892008 def add (sym : Symbol , doc : String ) = ctx.docCtx.foreach(_.addDocstring(sym, Some (Comment (NoSpan , doc))))
19902009
0 commit comments