This module is responsible for populating SIR tree. It is the first step in Swift Export pipeline.
Input: It should be possible to populate SIR from two types of artefacts: 1/ Kotlin Source Module 2/ KLib (currently not supported)
./gradlew :generators:sir-tests-generator:generateTests
this will generate test by their input files. Input files could be found and should be placed here - native/swift/sir-analysis-api/testData
The test expects to find .sir
file, containing serialized SIR for the test-case. Name of the .sir
file should be the same as a name of corresponding .kt
file.
The project for the generator can be found here - generators/sir-tests-generator/build.gradle.kts
./gradlew :native:swift:sir-analysis-api:test --tests "*"
OR just open SirAnalysisGeneratedTests
in IDEA and start them from gutter.
No additional setup required to develop this project.