@@ -8,22 +8,21 @@ import TastyFormat.{MajorVersion, MinorVersion, ExperimentalVersion, header}
8
8
* The Tasty Header consists of four fields:
9
9
* - uuid
10
10
* - contains a hash of the sections of the TASTy file
11
- * - majorVersion
12
- * - matching the TASTy format version that last broke backwards compatibility
13
- * - minorVersion
14
- * - matching the TASTy format version that last broke forward compatibility
15
- * - experimentalVersion
16
- * - 0 for final compiler version
17
- * - positive for between minor versions and forward compatibility
18
- * is broken since the previous stable version.
11
+ * - version
12
+ * - majorVersion
13
+ * - matching the TASTy format version that last broke backwards compatibility
14
+ * - minorVersion
15
+ * - matching the TASTy format version that last broke forward compatibility
16
+ * - experimentalVersion
17
+ * - 0 for final compiler version
18
+ * - positive for between minor versions and forward compatibility
19
+ * is broken since the previous stable version.
19
20
* - toolingVersion
20
21
* - arbitrary string representing the tooling that produced the TASTy
21
22
*/
22
23
sealed abstract case class TastyHeader (
23
24
uuid : UUID ,
24
- majorVersion : Int ,
25
- minorVersion : Int ,
26
- experimentalVersion : Int ,
25
+ version : TastyVersion ,
27
26
toolingVersion : String
28
27
)
29
28
@@ -156,7 +155,7 @@ class TastyHeaderUnpickler(config: UnpicklerConfig, reader: TastyReader) {
156
155
})
157
156
158
157
val uuid = new UUID (readUncompressedLong(), readUncompressedLong())
159
- new TastyHeader (uuid, fileMajor, fileMinor, fileExperimental, toolingVersion) {}
158
+ new TastyHeader (uuid, TastyVersion ( fileMajor, fileMinor, fileExperimental) , toolingVersion) {}
160
159
}
161
160
}
162
161
0 commit comments