Skip to content

Commit a00a7f8

Browse files
konsoletyperting-yuan
authored andcommitted
Add clarification to possible value types of KSValueArgument.value
1 parent e88e1ec commit a00a7f8

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

api/src/main/kotlin/com/google/devtools/ksp/symbol/KSValueArgument.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ interface KSValueArgument : KSAnnotated {
3636

3737
/**
3838
* The value of the argument.
39+
*
40+
* Can be of one of the possible types:
41+
*
42+
* * [Boolean];
43+
* * [Byte];
44+
* * [Char];
45+
* * [Short];
46+
* * [Int];
47+
* * [Long];
48+
* * [Float];
49+
* * [Double];
50+
* * [String];
51+
* * [KSType] for annotation arguments of type [kotlin.reflect.KClass];
52+
* * [KSClassDeclaration] for annotation arguments of type [Enum] (in this case[KSClassDeclaration.classKind]
53+
* equals to [ClassKind.ENUM_CLASS]);
54+
* * [KSAnnotation] for embedded annotation arguments;
55+
* * [Array] of a possible type listed above.
3956
*/
4057
val value: Any?
4158
}

0 commit comments

Comments
 (0)