mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
PrimitiveValues codegen
This commit is contained in:
parent
f5d9f4a67e
commit
febe4d9d52
@ -48,16 +48,55 @@ typealias ValueSerializer<T> = KSerializer<Value<T>>
|
||||
interface PrimitiveValue<T> : Value<T>
|
||||
|
||||
|
||||
//// region PrimitiveValue CODEGEN START ////
|
||||
//// region PrimitiveValues CODEGEN START ////
|
||||
|
||||
// TODO: 2020/6/19 CODEGEN
|
||||
/**
|
||||
* Represents a non-null [Byte] value.
|
||||
*/
|
||||
interface ByteValue : PrimitiveValue<Byte>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Short] value.
|
||||
*/
|
||||
interface ShortValue : PrimitiveValue<Short>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Int] value.
|
||||
*/
|
||||
interface IntValue : PrimitiveValue<Int>
|
||||
|
||||
//// endregion PrimitiveValue CODEGEN END ////
|
||||
/**
|
||||
* Represents a non-null [Long] value.
|
||||
*/
|
||||
interface LongValue : PrimitiveValue<Long>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Float] value.
|
||||
*/
|
||||
interface FloatValue : PrimitiveValue<Float>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Double] value.
|
||||
*/
|
||||
interface DoubleValue : PrimitiveValue<Double>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Char] value.
|
||||
*/
|
||||
interface CharValue : PrimitiveValue<Char>
|
||||
|
||||
/**
|
||||
* Represents a non-null [Boolean] value.
|
||||
*/
|
||||
interface BooleanValue : PrimitiveValue<Boolean>
|
||||
|
||||
/**
|
||||
* Represents a non-null [String] value.
|
||||
*/
|
||||
interface StringValue : PrimitiveValue<String>
|
||||
|
||||
|
||||
//// endregion PrimitiveValues CODEGEN END ////
|
||||
|
||||
|
||||
@MiraiExperimentalAPI
|
||||
|
Loading…
Reference in New Issue
Block a user