-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
4 changed files
with
83 additions
and
0 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
24 changes: 24 additions & 0 deletions
24
plugin/__snapshot__/accessors are generated only for public properties.snap
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 dev.nesk.validation.accessors | ||
|
||
import dev.nesk.PublicClass | ||
import dev.nesk.akkurate.validatables.Validatable | ||
import dev.nesk.akkurate.validatables.validatableOf | ||
import kotlin.Any | ||
import kotlin.Suppress | ||
import kotlin.jvm.JvmName | ||
import kotlin.reflect.KProperty1 | ||
|
||
/** | ||
* [Validatable] accessor of [PublicClass.publicPropInPublicScope] | ||
*/ | ||
public val Validatable<PublicClass>.publicPropInPublicScope: Validatable<Any> | ||
@JvmName(name = "validatablePublicClassPublicPropInPublicScope") | ||
get() = validatableOf(PublicClass::publicPropInPublicScope) | ||
|
||
/** | ||
* [Validatable] accessor of [PublicClass.publicPropInPublicScope] | ||
*/ | ||
public val Validatable<PublicClass?>.publicPropInPublicScope: Validatable<Any?> | ||
@JvmName(name = "validatableNullablePublicClassPublicPropInPublicScope") | ||
@Suppress("USELESS_CAST") | ||
get() = validatableOf(PublicClass::publicPropInPublicScope as KProperty1) |
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