@@ -8,24 +8,15 @@ import dotty.tools.tasty.TastyVersion
88 * @param associatedFile The source or class file from which this class or
99 * the class containing this symbol was generated,
1010 * null if not applicable.
11- * @param tastyVersion The TASTy version (major, minor, experimental)
12- * @param explicitNulls This compilation unit has explicit nulls enabled?
11+ * @param tastyInfo Information about the TASTy from which this class was loaded.
12+ * None if not loaded from TASTy,
1313 */
14- class CompilationUnitInfo (
15- val associatedFile : AbstractFile ,
16- val tastyVersion : Option [TastyVersion ],
17- val explicitNulls : Boolean
18- ) {
19-
20- override def toString (): String =
21- s " CompilationUnitInfo( $associatedFile, $tastyVersion) "
22- }
14+ case class CompilationUnitInfo (
15+ associatedFile : AbstractFile ,
16+ tastyInfo : Option [TastyInfo ],
17+ )
2318
2419object CompilationUnitInfo :
25- def apply (assocFile : AbstractFile | Null , explicitNulls : Boolean = false ): CompilationUnitInfo | Null =
20+ def apply (assocFile : AbstractFile | Null ): CompilationUnitInfo | Null =
2621 if assocFile == null then null
27- else new CompilationUnitInfo (
28- assocFile,
29- tastyVersion = None ,
30- explicitNulls = explicitNulls,
31- )
22+ else new CompilationUnitInfo (assocFile, tastyInfo = None )
0 commit comments