tree: 59d939579e967432edc99f63663e1b4fa8cb4aaa [path history] [tgz]
  1. src/
  2. testData/
  3. tests/
  4. tests-gen/
  5. build.gradle.kts
  6. README.md
native/swift/sir-analysis-api/README.md

Build Swift IR from Analysis API

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)

Dev guide

How to generate tests:

./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

How to run tests:

./gradlew :native:swift:sir-analysis-api:test --tests "*"

OR just open SirAnalysisGeneratedTests in IDEA and start them from gutter.

Project Setup

No additional setup required to develop this project.