aboutsummaryrefslogtreecommitdiff
path: root/src/Model/DocumentationModel.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Model/DocumentationModel.kt')
-rw-r--r--src/Model/DocumentationModel.kt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Model/DocumentationModel.kt b/src/Model/DocumentationModel.kt
index 90fe40e4..c5dd6603 100644
--- a/src/Model/DocumentationModel.kt
+++ b/src/Model/DocumentationModel.kt
@@ -59,6 +59,7 @@ public open class DocumentationNode(val name: String,
}
public fun references(kind: DocumentationReferenceKind): List<DocumentationReference> = references.filter { it.kind == kind }
+ public fun allReferences(): List<DocumentationReference> = references
public override fun toString(): String {
return "$kind $name"
@@ -87,5 +88,7 @@ fun BindingContext.createDocumentationModel(file: JetFile): DocumentationModel {
val visitor = DocumentationNodeBuilder(this)
packageFragment.accept(DocumentationBuildingVisitor(this, visitor), model)
+ model.resolveAll()
+
return model
}