forked from karakum-team/karakum
-
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.
Handle variables as top-level declarations
- Loading branch information
1 parent
eedeabe
commit 849dd54
Showing
22 changed files
with
161 additions
and
74 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
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
10 changes: 10 additions & 0 deletions
10
test/functional/namespace/generated/import/consumer/ignored.kt
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,10 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val ignored: Ignored |
11 changes: 11 additions & 0 deletions
11
test/functional/namespace/generated/import/consumer/myX.kt
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,11 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
import other.import.provider.X as MyX | ||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val myX: MyX |
10 changes: 10 additions & 0 deletions
10
test/functional/namespace/generated/import/consumer/myXyz.kt
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,10 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val myXyz: /* import("other-import-provider") */ Any |
11 changes: 11 additions & 0 deletions
11
test/functional/namespace/generated/import/consumer/myY.kt
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,11 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
import other.import.provider.Y as MyY | ||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val myY: MyY |
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
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
test/functional/namespace/generated/import/consumer/otherIgnored.kt
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,10 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val otherIgnored: OtherIgnored |
11 changes: 11 additions & 0 deletions
11
test/functional/namespace/generated/import/consumer/someValue.kt
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,11 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
import import.provider.SomeValue | ||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val someValue: SomeValue |
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,11 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("import-consumer") | ||
|
||
package import.consumer | ||
|
||
import other.import.provider.X | ||
// unhandled import: Ignored from "ignored-import" | ||
// unhandled import: other as OtherIgnored from "ignored-import" | ||
|
||
external val x: X |
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
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
test/functional/namespace/generated/package/namespace/packageNamespaceValue.kt
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,7 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("package-namespace") | ||
|
||
package `package`.namespace | ||
|
||
external val packageNamespaceValue: Double |
7 changes: 7 additions & 0 deletions
7
test/functional/namespace/generated/was/mapped/main/mappedValue.kt
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,7 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("will-be-mapped") | ||
|
||
package was.mapped.main | ||
|
||
external val mappedValue: Double |
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 |
---|---|---|
|
@@ -3,5 +3,3 @@ | |
@file:JsModule("will-be-mapped") | ||
|
||
package was.mapped.main | ||
|
||
external val mappedValue: Double |
File renamed without changes.
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 |
---|---|---|
|
@@ -5,5 +5,3 @@ | |
package sandbox.top.level | ||
|
||
external val myConst1: String | ||
|
||
external val myConst2: Double |
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,7 @@ | ||
// Generated by Karakum - do not modify it manually! | ||
|
||
@file:JsModule("sandbox-top-level") | ||
|
||
package sandbox.top.level | ||
|
||
external val myConst2: Double |