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:
Ilya Kirillov
2021-11-29 15:10:40 +01:00
parent 908a47810b
commit 19dec92247
18 changed files with 533 additions and 815 deletions
@@ -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