@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; }
{ 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())); } }
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); }