Open
Description
Example code:
import scala.mutable.List
package apackage {
type AType
}
Corresponding .tasty file:
0: PACKAGE(124)
2: TERMREFpkg 1 [<empty>]
4: IMPORT(6)
6: SELECT 2 [collection]
8: TERMREFpkg 3 [scala]
10: IMPORTED 4 [Seq]
12: PACKAGE(112)
14: TERMREFpkg 5 [apackage]
16: VALDEF(18) 6 [EmptyPackage$package]
19: IDENTtpt 7 [EmptyPackage$package[ModuleClass]]
21: TYPEREFsymbol 36
23: TERMREFpkg 5 [apackage]
25: APPLY(8)
27: SELECTin(6) 11 [<init>[Signed Signature(List(),apackage.EmptyPackage$package$/T) @<init>]]
30: NEW
31: SHAREDterm 19
33: SHAREDtype 21
35: OBJECT
36: TYPEDEF(88) 7 [EmptyPackage$package[ModuleClass]]
39: ....
i.e. apackage
is nested in <empty>
package, as indicated by indentation and the addresses: <empty>
package continues until address 124.