add export from kotlin into swift of simple documentation comment #KT-65913 fixed

Merge-request: KT-MR-14622
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2024-03-15 11:40:13 +00:00
committed by Space Team
parent 11c006d14c
commit eaa50fbf37
40 changed files with 276 additions and 19 deletions
@@ -149,6 +149,8 @@ internal fun buildSirClassFromPsi(classOrObject: KtClassOrObject): SirNamedDecla
)
)
documentation = classOrObject.docComment?.text
// HACK to support default constructors.
// todo: We should rework builder from PSI to AnalysisApi during KT-66310
val constructors = symbol.getMemberScope().getConstructors()
@@ -236,6 +238,8 @@ internal fun buildSirVariableFromPsi(variable: KtProperty): SirVariable = buildV
setter = if (variable.isVar) buildSetter {
kind = accessorKind
} else null
documentation = variable.docComment?.text
}.also {
it.getter.parent = it
it.setter?.parent = it