예제 #1
0
 @NotNull
 private static Set<FqNameUnsafe> computeIndexedFqNames(@NotNull String prefix, int count) {
   Set<FqNameUnsafe> result = new HashSet<FqNameUnsafe>();
   for (int i = 0; i < count; i++) {
     result.add(fqNameUnsafe(prefix + i));
   }
   return result;
 }
예제 #2
0
 {
   primitiveTypes = new HashSet<FqNameUnsafe>(0);
   primitiveArrays = new HashSet<FqNameUnsafe>(0);
   for (PrimitiveType primitiveType : PrimitiveType.values()) {
     primitiveTypes.add(fqNameUnsafe(primitiveType.getTypeName().asString()));
     primitiveArrays.add(fqNameUnsafe(primitiveType.getArrayTypeName().asString()));
   }
 }
예제 #3
0
  private static boolean isTypeConstructorFqNameInSet(
      @NotNull JetType type, @NotNull Set<FqNameUnsafe> classes) {
    ClassifierDescriptor declarationDescriptor = type.getConstructor().getDeclarationDescriptor();

    if (declarationDescriptor == null) return false;

    FqNameUnsafe fqName = DescriptorUtils.getFqName(declarationDescriptor);
    return classes.contains(fqName);
  }