Skip to content

Kotlin-specific views #84

Description

@ingokegel

Show data from @kotlin.Metadata annotations. These contain protobuf-encoded data that's currently shown as opaque byte arrays.

What to show?

  • Whether a class is a data class, inline class, object, sealed, etc.
  • Actual Kotlin function signatures (nullable types, default parameters, suspend)
  • Property declarations (val/var, delegated, lateinit)
  • Companion object references
  • Internal visibility (which is public at JVM level)
  • Type aliases, inline class boxing info

How to implement it:

The kotlinx-metadata-jvm library deserializes the @kotlin.Metadata annotation into a structured model.

Show Kotlin-specific semantics, like suspend fun foo(x: String?): List instead of the JVM descriptor
Maybe a dedicated Kotlin node for per metadata annotation?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions