SNRK-70: alias is added for names of files

This commit is contained in:
liubar.pa 2023-04-30 22:46:31 +03:00
parent b7a439f711
commit 3c2ffb572b

View File

@ -1,12 +1,14 @@
package documentBuilder package documentBuilder
typealias FileName = String
sealed interface DependencyGraphEdge { sealed interface DependencyGraphEdge {
} }
data class IncludeDependency( data class IncludeDependency(
val parentNode: MdAstParent, val parentNode: MdAstParent,
val dependentNode: Iterator<MdAstElement>, val dependentNode: Iterator<MdAstElement>,
val includeList: List<String> val includeList: List<FileName>
) : DependencyGraphEdge ) : DependencyGraphEdge
data class DependencyGraphNode( data class DependencyGraphNode(
@ -15,5 +17,5 @@ data class DependencyGraphNode(
) )
data class DependencyGraph( data class DependencyGraph(
val nodes: Map<String, DependencyGraphNode> val nodes: Map<FileName, DependencyGraphNode>
) )