Example #1
0
 @Nullable
 public static FunctionDescriptor getOverriddenDescriptor(
     @NotNull FunctionDescriptor functionDescriptor) {
   Set<? extends FunctionDescriptor> overriddenDescriptors =
       functionDescriptor.getOverriddenDescriptors();
   if (overriddenDescriptors.isEmpty()) {
     return null;
   } else {
     // TODO: for now translator can't deal with multiple inheritance good enough
     return overriddenDescriptors.iterator().next();
   }
 }
Example #2
0
 private static int valueParametersCount(@NotNull FunctionDescriptor functionDescriptor) {
   return functionDescriptor.getValueParameters().size();
 }