blob: 8e76282a39310a90ff069bd27e2c74e73fdd2652 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package dotty.tools.dotc.core
import Types._, Contexts._, Symbols._
class Definitions(implicit ctx: Context) {
private var _isInitialized = false
def isInitialized = _isInitialized
lazy val AnyClass: ClassSymbol = ???
lazy val AnyType = AnyClass.typeConstructor
lazy val AnyValClass: ClassSymbol = ???
lazy val NothingClass: ClassSymbol = ???
lazy val NothingType = NothingClass.typeConstructor
lazy val NullClass: ClassSymbol = ???
lazy val NullType = NullClass.typeConstructor
lazy val ObjectClass: ClassSymbol = ???
lazy val ObjectType = ObjectClass.typeConstructor
lazy val SingletonClass: ClassSymbol = ???
lazy val SingletonType = SingletonClass.typeConstructor
lazy val ArrayClass: ClassSymbol = ???
def init() =
if (!isInitialized) {
// force initialization of every symbol that is synthesized or hijacked by the compiler
val forced = ???
_isInitialized = true
}
}
|