Add SIR builder and printer for classes #KT-65905 fixed

Merge-request: KT-MR-14478
Merged-by: Artem Olkov <artem.olkov@jetbrains.com>
This commit is contained in:
Artem Olkov
2024-02-26 14:30:07 +00:00
committed by Space Team
parent febac0dd5f
commit e4acb396ba
22 changed files with 366 additions and 9 deletions
@@ -68,6 +68,12 @@ object SwiftIrTree : AbstractSwiftIrTreeBuilder() {
parent(declarationContainer)
}
val `class`: Element by element {
customParentInVisitor = namedDeclaration
parent(namedDeclaration)
parent(declarationContainer)
}
val callable by sealedElement {
parent(declaration)
}