DescriptorRenderer to render annotations for all types + separate option to render annotation arguments + use it in IdeDescriptorRenderers
This commit is contained in:
@@ -52,6 +52,7 @@ object IdeDescriptorRenderers {
|
||||
unitReturnType = false
|
||||
modifiers = DescriptorRendererModifier.ALL
|
||||
renderUnabbreviatedType = false
|
||||
includeAnnotationArguments = true
|
||||
}
|
||||
|
||||
@JvmField val SOURCE_CODE: DescriptorRenderer = BASE.withOptions {
|
||||
|
||||
+3
-1
@@ -39,7 +39,9 @@ fun DescriptorRendererOptions.defaultDecompilerRendererOptions() {
|
||||
classWithPrimaryConstructor = true
|
||||
secondaryConstructorsAsPrimary = false
|
||||
modifiers = DescriptorRendererModifier.ALL
|
||||
excludedTypeAnnotationClasses = (ExcludedTypeAnnotations.annotationsForNullabilityAndMutability + KotlinBuiltIns.FQ_NAMES.parameterName).toSet()
|
||||
excludedTypeAnnotationClasses = (ExcludedTypeAnnotations.annotationsForNullabilityAndMutability +
|
||||
KotlinBuiltIns.FQ_NAMES.extensionFunctionType +
|
||||
KotlinBuiltIns.FQ_NAMES.parameterName).toSet()
|
||||
alwaysRenderModifiers = true
|
||||
parameterNamesInFunctionalTypes = false // to support parameters names in decompiled text we need to load annotation arguments
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user