示例#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);
  }