KaType
s.
137 | KtEnumEntry
is a KtClass
, as it was so In the old compiler.
7 | In the Analysis API, though, similarly to the K2 compiler, it is a KaVariableSymbol
.
8 | Member | 71 |Description | 72 |
SOURCE |
75 |
76 | A declaration directly written in Kotlin source code. 77 |Examples: Classes, functions, properties, and other declarations defined in Kotlin source files. 78 | |
79 |
SOURCE_MEMBER_GENERATED |
82 |
83 | A declaration automatically generated by the Kotlin compiler as a member of another declaration. 84 |Examples: 85 |
|
92 |
LIBRARY |
95 |
96 | A declaration from a compiled Kotlin library ( Examples: Classes, functions, properties, and other declarations defined in Kotlin source files. 98 | |
99 |
JAVA_SOURCE |
102 |
103 | A declaration from Java source code. 104 |Examples: Classes, methods, and fields defined in Java source files. 105 | |
106 |
JAVA_LIBRARY |
109 |
110 | A declaration from a compiled Java library. 111 |Examples: Classes, methods, and fields from Java libraries, or from the JDK. 112 | |
113 |
SAM_CONSTRUCTOR |
116 |
117 | A synthetic function generated by the SAM (Single Abstract Method) conversion. 118 | This occurs when a lambda expression is passed as an argument where a functional interface is expected. 119 |Example: 120 |In this case, the lambda expression is converted to a synthetic function that implements the |
127 |
INTERSECTION_OVERRIDE |
130 |
131 | A synthetic declaration automatically created by the Kotlin compiler for callable intersections. 132 |Example: 133 |In |
141 |
SUBSTITUTION_OVERRIDE |
144 |
145 | A synthetic declaration automatically created by the Kotlin compiler for callable type substitutions. 146 |Example: 147 |Interface |
156 |
DELEGATED |
159 |
160 | A member generated by the compiler for interface delegation. This occurs 161 | when a class delegates the implementation of an interface to another object. 162 |Example: 163 |The compiler generates a member function |
175 |
JAVA_SYNTHETIC_PROPERTY |
178 |
179 | A synthetic property generated by the compiler for a Java field with a getter or setter. 180 | This allows Java fields to be accessed like Kotlin properties. 181 |Example: 182 |The compiler generates a synthetic property |
200 |
PROPERTY_BACKING_FIELD |
203 |
204 | A backing field of a property declaration (a field that stores the value of the property). 205 |Example: 206 |The |
218 |
PLUGIN |
221 |
222 | A declaration generated by a compiler plugin. 223 | |
224 |
JS_DYNAMIC |
227 |
228 | A declaration from a dynamic Kotlin/JS scope. 229 | |
230 |
NATIVE_FORWARD_DECLARATION |
233 |
234 | A Kotlin/Native forward declaration. See the 235 | forward declarations 236 | section in the Kotlin documentation. 237 | |
238 |