-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Each annotation is located in its own file.
- Loading branch information
Showing
6 changed files
with
119 additions
and
107 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...jects/internal/src/commonMain/kotlin/org/kotools/types/internal/DeprecatedAsErrorSince.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,25 @@ | ||
package org.kotools.types.internal | ||
|
||
import kotools.types.internal.InternalKotoolsTypesApi | ||
|
||
/** | ||
* Specifies the first [version] of Kotools Types where a declaration has | ||
* appeared as a **deprecated** feature with an [error][DeprecationLevel.ERROR] | ||
* level. | ||
*/ | ||
@InternalKotoolsTypesApi | ||
@MustBeDocumented | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
public annotation class DeprecatedAsErrorSince( | ||
/** | ||
* The first version of Kotools Types where the declaration was deprecated | ||
* with an error level. | ||
*/ | ||
val version: KotoolsTypesVersion | ||
) |
25 changes: 25 additions & 0 deletions
25
...cts/internal/src/commonMain/kotlin/org/kotools/types/internal/DeprecatedAsWarningSince.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,25 @@ | ||
package org.kotools.types.internal | ||
|
||
import kotools.types.internal.InternalKotoolsTypesApi | ||
|
||
/** | ||
* Specifies the first [version] of Kotools Types where a declaration has | ||
* appeared as a **deprecated** feature with a | ||
* [warning][DeprecationLevel.WARNING] level. | ||
*/ | ||
@InternalKotoolsTypesApi | ||
@MustBeDocumented | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
public annotation class DeprecatedAsWarningSince( | ||
/** | ||
* The first version of Kotools Types where the declaration was deprecated | ||
* with a warning level. | ||
*/ | ||
val version: KotoolsTypesVersion | ||
) |
22 changes: 22 additions & 0 deletions
22
subprojects/internal/src/commonMain/kotlin/org/kotools/types/internal/ExperimentalSince.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,22 @@ | ||
package org.kotools.types.internal | ||
|
||
import kotools.types.internal.InternalKotoolsTypesApi | ||
|
||
/** | ||
* Specifies the first [version] of Kotools Types where a declaration has | ||
* appeared as an **experimental** feature. | ||
*/ | ||
@InternalKotoolsTypesApi | ||
@MustBeDocumented | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.CONSTRUCTOR, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
public annotation class ExperimentalSince( | ||
/** The version of Kotools Types where the declaration was introduced. */ | ||
val version: KotoolsTypesVersion | ||
) |
24 changes: 24 additions & 0 deletions
24
subprojects/internal/src/commonMain/kotlin/org/kotools/types/internal/HiddenSince.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,24 @@ | ||
package org.kotools.types.internal | ||
|
||
import kotools.types.internal.InternalKotoolsTypesApi | ||
|
||
/** | ||
* Specifies the first [version] of Kotools Types where a declaration has been | ||
* [hidden][DeprecationLevel.HIDDEN] from code. | ||
*/ | ||
@InternalKotoolsTypesApi | ||
@MustBeDocumented | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
public annotation class HiddenSince( | ||
/** | ||
* The first version of Kotools Types where the declaration was hidden from | ||
* sources. | ||
*/ | ||
val version: KotoolsTypesVersion | ||
) |
23 changes: 23 additions & 0 deletions
23
subprojects/internal/src/commonMain/kotlin/org/kotools/types/internal/Since.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,23 @@ | ||
package org.kotools.types.internal | ||
|
||
import kotools.types.internal.InternalKotoolsTypesApi | ||
|
||
/** | ||
* Specifies the first [version] of Kotools Types where a declaration has | ||
* appeared as a **stable** feature. | ||
*/ | ||
@InternalKotoolsTypesApi | ||
@MustBeDocumented | ||
@Retention(AnnotationRetention.SOURCE) | ||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.FUNCTION, | ||
AnnotationTarget.PROPERTY, | ||
AnnotationTarget.TYPEALIAS | ||
) | ||
public annotation class Since( | ||
/** | ||
* The first version of Kotools Types where the declaration was stabilized. | ||
*/ | ||
val version: KotoolsTypesVersion | ||
) |
107 changes: 0 additions & 107 deletions
107
...ojects/internal/src/commonMain/kotlin/org/kotools/types/internal/VersioningAnnotations.kt
This file was deleted.
Oops, something went wrong.