@@ -2,20 +2,33 @@ package dotty.tools
2
2
package dotc
3
3
package core
4
4
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 .*
8
19
import unpickleScala2 .Scala2Unpickler .ensureConstructor
20
+
9
21
import scala .collection .mutable
10
22
import collection .mutable
11
23
import Denotations .{SingleDenotation , staticRef }
12
- import util .{SimpleIdentityMap , SourceFile , NoSource }
24
+ import util .{NoSource , SimpleIdentityMap , SourceFile }
13
25
import typer .ImportInfo .RootRef
14
26
import Comments .CommentsContext
15
27
import Comments .Comment
16
28
import util .Spans .NoSpan
17
29
import Symbols .requiredModuleRef
18
- import cc .{CapturingType , CaptureSet , EventuallyCapturingType }
30
+ import cc .{CaptureSet , CapturingType , EventuallyCapturingType }
31
+ import dotty .tools .dotc .transform .LazyVals .lazyNme
19
32
20
33
import scala .annotation .tailrec
21
34
@@ -1985,6 +1998,12 @@ class Definitions {
1985
1998
addSyntheticSymbolsComments
1986
1999
}
1987
2000
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
+
1988
2007
def addSyntheticSymbolsComments (using Context ): Unit =
1989
2008
def add (sym : Symbol , doc : String ) = ctx.docCtx.foreach(_.addDocstring(sym, Some (Comment (NoSpan , doc))))
1990
2009
0 commit comments