This repository was archived by the owner on May 15, 2023. It is now read-only.
-
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.
Properly add the @language annotation (thanks Him188!)
- Loading branch information
Showing
7 changed files
with
38 additions
and
4 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,20 @@ | ||
package guru.zoroark.lixy.utils | ||
|
||
import kotlin.annotation.AnnotationTarget.* | ||
|
||
|
||
/** | ||
* Mapping to `org.intellij.lang.annotations.Language` on JVM, but no actual | ||
* implementations on other platforms. | ||
* | ||
* Credits to @Him188 on GitHub, thanks! | ||
*/ | ||
@Retention(AnnotationRetention.BINARY) | ||
@Target(FUNCTION, FIELD, VALUE_PARAMETER, LOCAL_VARIABLE, ANNOTATION_CLASS) | ||
@OptIn(ExperimentalMultiplatform::class) | ||
@OptionalExpectation | ||
expect annotation class Language( | ||
val value: String, | ||
val prefix: String, // default values aren't allowed yet | ||
val suffix: String | ||
) |
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,5 @@ | ||
package guru.zoroark.lixy.utils | ||
|
||
import org.intellij.lang.annotations.Language | ||
|
||
actual typealias Language = Language |
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