Analysis API: rework declaration renderer
- refactor code to use PrettyPrinter instead of ad-hoc one - do not print nested local declarations as this does not seem to have use-cases
This commit is contained in:
@@ -15,13 +15,13 @@
|
||||
*/
|
||||
package org.jetbrains.kotlin.descriptors
|
||||
|
||||
enum class ClassKind {
|
||||
CLASS,
|
||||
INTERFACE,
|
||||
ENUM_CLASS,
|
||||
ENUM_ENTRY,
|
||||
ANNOTATION_CLASS,
|
||||
OBJECT;
|
||||
enum class ClassKind(val codeRepresentation: String?) {
|
||||
CLASS( "class"),
|
||||
INTERFACE("interface"),
|
||||
ENUM_CLASS( "enum class"),
|
||||
ENUM_ENTRY( null),
|
||||
ANNOTATION_CLASS( "annotation class"),
|
||||
OBJECT("object");
|
||||
|
||||
val isSingleton: Boolean
|
||||
get() = this == OBJECT || this == ENUM_ENTRY
|
||||
|
||||
Reference in New Issue
Block a user