File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
compiler/backend/src/org/jetbrains/kotlin/codegen Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 38
38
import org .jetbrains .kotlin .load .java .JvmAnnotationNames ;
39
39
import org .jetbrains .kotlin .name .FqName ;
40
40
import org .jetbrains .kotlin .protobuf .MessageLite ;
41
+ import org .jetbrains .kotlin .renderer .DescriptorRenderer ;
41
42
import org .jetbrains .kotlin .resolve .DeprecationUtilKt ;
42
43
import org .jetbrains .kotlin .resolve .DescriptorUtils ;
43
44
import org .jetbrains .kotlin .resolve .annotations .AnnotationUtilKt ;
@@ -244,13 +245,10 @@ public static int getVisibilityAccessFlag(@NotNull MemberDescriptor descriptor)
244
245
if (specialCase != null ) {
245
246
return specialCase ;
246
247
}
247
- return getDefaultVisibilityFlag (descriptor .getVisibility ());
248
- }
249
-
250
- public static int getDefaultVisibilityFlag (@ NotNull Visibility visibility ) {
248
+ Visibility visibility = descriptor .getVisibility ();
251
249
Integer defaultMapping = visibilityToAccessFlag .get (visibility );
252
250
if (defaultMapping == null ) {
253
- throw new IllegalStateException (visibility + " is not a valid visibility in backend" );
251
+ throw new IllegalStateException (visibility + " is not a valid visibility in backend for " + DescriptorRenderer . DEBUG_TEXT . render ( descriptor ) );
254
252
}
255
253
return defaultMapping ;
256
254
}
You can’t perform that action at this time.
0 commit comments