SNRK-66: documentDependencies and dependencyGraph are added

This commit is contained in:
liubar.pa 2023-04-24 07:24:18 +03:00
parent 4465e68408
commit 0ef269ec5c

View File

@ -11,6 +11,12 @@ public suspend fun buildDocument(documentPath: String) {
val documentDirectory: Directory = LocalDirectory(documentPath)
val documentRoot = documentDirectory.get(DEFAULT_DOCUMENT_ROOT)
// val (dependencies, vertex) = parseMd(documentRoot.readAll())
val (dependencies, vertex) = parseMd(documentRoot.readAll())
val documentDependencies: HashMap<String, Dependencies> = HashMap<String, Dependencies>()
val dependencyGraph: HashMap<String, DependencyGraphVertex> =
HashMap<String, DependencyGraphVertex>()
documentDependencies.put(documentPath, dependencies)
dependencyGraph.put(documentPath, vertex)
}