File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
core/commonMain/src/kotlinx/serialization/descriptors Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,8 @@ public interface SerialDescriptor {
270270 * @Serializable
271271 * class Outer(@OnPropertySerialAnnotation val nested: Nested)
272272 *
273+ * val outerDescriptor = Outer.serializer().descriptor
274+ *
273275 * outerDescriptor.getElementAnnotations(0) // Returns [@OnPropertySerialAnnotation]
274276 * outerDescriptor.getElementDescriptor(0).annotations // Returns [@OnClassSerialAnnotation]
275277 * ```
@@ -332,6 +334,8 @@ public interface SerialDescriptor {
332334 * @Serializable
333335 * class Outer(@OnPropertySerialAnnotation val nested: Nested)
334336 *
337+ * val outerDescriptor = Outer.serializer().descriptor
338+ *
335339 * outerDescriptor.getElementAnnotations(0) // Returns [@OnPropertySerialAnnotation]
336340 * outerDescriptor.getElementDescriptor(0).annotations // Returns [@OnClassSerialAnnotation]
337341 * ```
You can’t perform that action at this time.
0 commit comments