forked from Kotlin/binary-compatibility-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse Wasm targets from KLib dump's manifest (Kotlin#221)
Fixes Kotlin#193
- Loading branch information
Showing
7 changed files
with
110 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Klib ABI Dump | ||
// Targets: [wasmJs, wasmWasi] | ||
// Rendering settings: | ||
// - Signature version: 2 | ||
// - Show manifest properties: false | ||
// - Show declarations: true | ||
|
||
// Library unique name: <org.example:bcv-klib-test> | ||
final class org.example/ShardedClass { // org.example/ShardedClass|null[0] | ||
constructor <init>(kotlin/Int) // org.example/ShardedClass.<init>|<init>(kotlin.Int){}[0] | ||
final fun add(kotlin/Int): kotlin/Int // org.example/ShardedClass.add|add(kotlin.Int){}[0] | ||
final val value // org.example/ShardedClass.value|{}value[0] | ||
final fun <get-value>(): kotlin/Int // org.example/ShardedClass.value.<get-value>|<get-value>(){}[0] | ||
} | ||
final fun org.example/ShardedClass(kotlin/Int, kotlin/Float, kotlin/Long): org.example/ShardedClass // org.example/ShardedClass|ShardedClass(kotlin.Int;kotlin.Float;kotlin.Long){}[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Rendering settings: | ||
// - Signature version: 2 | ||
// - Show manifest properties: false | ||
// - Show declarations: true | ||
|
||
// Library unique name: <org.example:bcv-klib-test> | ||
// Platform: WASM | ||
// WASM targets: wasm-js | ||
// Compiler version: 2.0.255-SNAPSHOT | ||
// ABI version: 1.8.0 | ||
final class org.example/ShardedClass { // org.example/ShardedClass|null[0] | ||
final val value // org.example/ShardedClass.value|{}value[0] | ||
final fun <get-value>(): kotlin/Int // org.example/ShardedClass.value.<get-value>|<get-value>(){}[0] | ||
constructor <init>(kotlin/Int) // org.example/ShardedClass.<init>|<init>(kotlin.Int){}[0] | ||
final fun add(kotlin/Int): kotlin/Int // org.example/ShardedClass.add|add(kotlin.Int){}[0] | ||
} | ||
final fun org.example/ShardedClass(kotlin/Int, kotlin/Float, kotlin/Long): org.example/ShardedClass // org.example/ShardedClass|ShardedClass(kotlin.Int;kotlin.Float;kotlin.Long){}[0] |
17 changes: 17 additions & 0 deletions
17
src/test/resources/merge/explicitWasmTargets/wasmMulti.abi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Rendering settings: | ||
// - Signature version: 2 | ||
// - Show manifest properties: false | ||
// - Show declarations: true | ||
|
||
// Library unique name: <org.example:bcv-klib-test> | ||
// Platform: WASM | ||
// WASM targets: wasm-wasi, wasm-js | ||
// Compiler version: 2.0.255-SNAPSHOT | ||
// ABI version: 1.8.0 | ||
final class org.example/ShardedClass { // org.example/ShardedClass|null[0] | ||
final val value // org.example/ShardedClass.value|{}value[0] | ||
final fun <get-value>(): kotlin/Int // org.example/ShardedClass.value.<get-value>|<get-value>(){}[0] | ||
constructor <init>(kotlin/Int) // org.example/ShardedClass.<init>|<init>(kotlin.Int){}[0] | ||
final fun add(kotlin/Int): kotlin/Int // org.example/ShardedClass.add|add(kotlin.Int){}[0] | ||
} | ||
final fun org.example/ShardedClass(kotlin/Int, kotlin/Float, kotlin/Long): org.example/ShardedClass // org.example/ShardedClass|ShardedClass(kotlin.Int;kotlin.Float;kotlin.Long){}[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Rendering settings: | ||
// - Signature version: 2 | ||
// - Show manifest properties: false | ||
// - Show declarations: true | ||
|
||
// Library unique name: <org.example:bcv-klib-test> | ||
// Platform: WASM | ||
// WASM targets: wasm-wasi | ||
// Compiler version: 2.0.255-SNAPSHOT | ||
// ABI version: 1.8.0 | ||
final class org.example/ShardedClass { // org.example/ShardedClass|null[0] | ||
final val value // org.example/ShardedClass.value|{}value[0] | ||
final fun <get-value>(): kotlin/Int // org.example/ShardedClass.value.<get-value>|<get-value>(){}[0] | ||
constructor <init>(kotlin/Int) // org.example/ShardedClass.<init>|<init>(kotlin.Int){}[0] | ||
final fun add(kotlin/Int): kotlin/Int // org.example/ShardedClass.add|add(kotlin.Int){}[0] | ||
} | ||
final fun org.example/ShardedClass(kotlin/Int, kotlin/Float, kotlin/Long): org.example/ShardedClass // org.example/ShardedClass|ShardedClass(kotlin.Int;kotlin.Float;kotlin.Long){}[0] |