@NotNull
 private static String createArrayFunction(@NotNull final Type type) {
   String sType = innerTypeStr(type);
   if (PRIMITIVE_TYPES.contains(sType)) {
     return sType + "Array"; // intArray
   }
   return AstUtil.lowerFirstCharacter(type.convertedToNotNull().toKotlin()); // array<Foo?>
 }
Esempio n. 2
0
 @NotNull
 public Type typeToType(PsiType type, boolean notNull) {
   Type result = typeToType(type);
   if (notNull) {
     result.convertedToNotNull();
   }
   return result;
 }
 @NotNull
 private static String innerTypeStr(@NotNull final Type type) {
   return type.convertedToNotNull().toKotlin().replace("Array", "").toLowerCase();
 }
Esempio n. 4
0
 @NotNull
 private List<Type> typesToNotNullableTypeList(@NotNull PsiType[] types) {
   List<Type> result = new LinkedList<Type>(typesToTypeList(types));
   for (Type p : result) p.convertedToNotNull();
   return result;
 }