File tree 2 files changed +9
-0
lines changed
scaladoc/src/dotty/tools/scaladoc
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ object Inkuire {
7
7
8
8
var db = InkuireDb (Seq .empty, Map .empty, Seq .empty)
9
9
10
+ def beforeSave (): Unit = {
11
+ db = db.copy(
12
+ functions = db.functions.sortBy(_.hashCode),
13
+ types = db.types.toSeq.sortBy(_._1.uuid).toMap,
14
+ implicitConversions = db.implicitConversions.sortBy(_._1.uuid)
15
+ )
16
+ }
17
+
10
18
def generateInkuireConfig (externalMappings : Seq [String ]): String = {
11
19
val paths = (" ../inkuire-db.json" +: externalMappings.map(_ + " ../inkuire-db.json" )).map(jsonString)
12
20
jsonObject((" inkuirePaths" , jsonList(paths))).toString
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ object Scaladoc:
93
93
val dbFile = dbPath.toFile()
94
94
dbFile.createNewFile()
95
95
val dbWriter = new FileWriter (dbFile, false )
96
+ Inkuire .beforeSave()
96
97
dbWriter.write(s " ${EngineModelSerializers .serialize(Inkuire .db)}" )
97
98
dbWriter.close()
98
99
You can’t perform that action at this time.
0 commit comments