Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,125 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.ExtensionRegistryLite;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SerializerExtensionProtocol {
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, List<ProtoBuf.Annotation>> classAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, ProtoBuf.Annotation.Argument.Value> compileTimeValue;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Constructor, List<ProtoBuf.Annotation>> constructorAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.EnumEntry, List<ProtoBuf.Annotation>> enumEntryAnnotation;
|
||||
private final ExtensionRegistryLite extensionRegistry;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> functionAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> functionExtensionReceiverAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Package, Integer> packageFqName;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.ValueParameter, List<ProtoBuf.Annotation>> parameterAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyBackingFieldAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyDelegatedFieldAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyExtensionReceiverAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyGetterAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertySetterAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Type, List<ProtoBuf.Annotation>> typeAnnotation;
|
||||
private final GeneratedMessageLite.GeneratedExtension<ProtoBuf.TypeParameter, List<ProtoBuf.Annotation>> typeParameterAnnotation;
|
||||
|
||||
public SerializerExtensionProtocol(ExtensionRegistryLite extensionRegistry, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Package, Integer> packageFqName, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Constructor, List<ProtoBuf.Annotation>> constructorAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, List<ProtoBuf.Annotation>> classAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> functionAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> generatedExtension, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyGetterAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertySetterAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> generatedExtension2, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> generatedExtension3, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> generatedExtension4, GeneratedMessageLite.GeneratedExtension<ProtoBuf.EnumEntry, List<ProtoBuf.Annotation>> enumEntryAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, ProtoBuf.Annotation.Argument.Value> compileTimeValue, GeneratedMessageLite.GeneratedExtension<ProtoBuf.ValueParameter, List<ProtoBuf.Annotation>> parameterAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.Type, List<ProtoBuf.Annotation>> typeAnnotation, GeneratedMessageLite.GeneratedExtension<ProtoBuf.TypeParameter, List<ProtoBuf.Annotation>> typeParameterAnnotation) {
|
||||
Intrinsics.checkNotNullParameter(extensionRegistry, "extensionRegistry");
|
||||
Intrinsics.checkNotNullParameter(packageFqName, "packageFqName");
|
||||
Intrinsics.checkNotNullParameter(constructorAnnotation, "constructorAnnotation");
|
||||
Intrinsics.checkNotNullParameter(classAnnotation, "classAnnotation");
|
||||
Intrinsics.checkNotNullParameter(functionAnnotation, "functionAnnotation");
|
||||
Intrinsics.checkNotNullParameter(propertyAnnotation, "propertyAnnotation");
|
||||
Intrinsics.checkNotNullParameter(propertyGetterAnnotation, "propertyGetterAnnotation");
|
||||
Intrinsics.checkNotNullParameter(propertySetterAnnotation, "propertySetterAnnotation");
|
||||
Intrinsics.checkNotNullParameter(enumEntryAnnotation, "enumEntryAnnotation");
|
||||
Intrinsics.checkNotNullParameter(compileTimeValue, "compileTimeValue");
|
||||
Intrinsics.checkNotNullParameter(parameterAnnotation, "parameterAnnotation");
|
||||
Intrinsics.checkNotNullParameter(typeAnnotation, "typeAnnotation");
|
||||
Intrinsics.checkNotNullParameter(typeParameterAnnotation, "typeParameterAnnotation");
|
||||
this.extensionRegistry = extensionRegistry;
|
||||
this.packageFqName = packageFqName;
|
||||
this.constructorAnnotation = constructorAnnotation;
|
||||
this.classAnnotation = classAnnotation;
|
||||
this.functionAnnotation = functionAnnotation;
|
||||
this.functionExtensionReceiverAnnotation = generatedExtension;
|
||||
this.propertyAnnotation = propertyAnnotation;
|
||||
this.propertyGetterAnnotation = propertyGetterAnnotation;
|
||||
this.propertySetterAnnotation = propertySetterAnnotation;
|
||||
this.propertyExtensionReceiverAnnotation = generatedExtension2;
|
||||
this.propertyBackingFieldAnnotation = generatedExtension3;
|
||||
this.propertyDelegatedFieldAnnotation = generatedExtension4;
|
||||
this.enumEntryAnnotation = enumEntryAnnotation;
|
||||
this.compileTimeValue = compileTimeValue;
|
||||
this.parameterAnnotation = parameterAnnotation;
|
||||
this.typeAnnotation = typeAnnotation;
|
||||
this.typeParameterAnnotation = typeParameterAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, List<ProtoBuf.Annotation>> getClassAnnotation() {
|
||||
return this.classAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, ProtoBuf.Annotation.Argument.Value> getCompileTimeValue() {
|
||||
return this.compileTimeValue;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Constructor, List<ProtoBuf.Annotation>> getConstructorAnnotation() {
|
||||
return this.constructorAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.EnumEntry, List<ProtoBuf.Annotation>> getEnumEntryAnnotation() {
|
||||
return this.enumEntryAnnotation;
|
||||
}
|
||||
|
||||
public final ExtensionRegistryLite getExtensionRegistry() {
|
||||
return this.extensionRegistry;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> getFunctionAnnotation() {
|
||||
return this.functionAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> getFunctionExtensionReceiverAnnotation() {
|
||||
return this.functionExtensionReceiverAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.ValueParameter, List<ProtoBuf.Annotation>> getParameterAnnotation() {
|
||||
return this.parameterAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertyAnnotation() {
|
||||
return this.propertyAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertyBackingFieldAnnotation() {
|
||||
return this.propertyBackingFieldAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertyDelegatedFieldAnnotation() {
|
||||
return this.propertyDelegatedFieldAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertyExtensionReceiverAnnotation() {
|
||||
return this.propertyExtensionReceiverAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertyGetterAnnotation() {
|
||||
return this.propertyGetterAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> getPropertySetterAnnotation() {
|
||||
return this.propertySetterAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.Type, List<ProtoBuf.Annotation>> getTypeAnnotation() {
|
||||
return this.typeAnnotation;
|
||||
}
|
||||
|
||||
public final GeneratedMessageLite.GeneratedExtension<ProtoBuf.TypeParameter, List<ProtoBuf.Annotation>> getTypeParameterAnnotation() {
|
||||
return this.typeParameterAnnotation;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderOptimized;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.MemoizedFunctionToNullable;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.utils.CollectionsKt;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractDeserializedPackageFragmentProvider implements PackageFragmentProviderOptimized {
|
||||
protected DeserializationComponents components;
|
||||
private final KotlinMetadataFinder finder;
|
||||
private final MemoizedFunctionToNullable<FqName, PackageFragmentDescriptor> fragments;
|
||||
private final ModuleDescriptor moduleDescriptor;
|
||||
private final StorageManager storageManager;
|
||||
|
||||
public AbstractDeserializedPackageFragmentProvider(StorageManager storageManager, KotlinMetadataFinder finder, ModuleDescriptor moduleDescriptor) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(finder, "finder");
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
this.storageManager = storageManager;
|
||||
this.finder = finder;
|
||||
this.moduleDescriptor = moduleDescriptor;
|
||||
this.fragments = storageManager.createMemoizedFunctionWithNullableValues(new Function1<FqName, PackageFragmentDescriptor>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.AbstractDeserializedPackageFragmentProvider$fragments$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final PackageFragmentDescriptor invoke(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
DeserializedPackageFragment findPackage = AbstractDeserializedPackageFragmentProvider.this.findPackage(fqName);
|
||||
if (findPackage == null) {
|
||||
return null;
|
||||
}
|
||||
findPackage.initialize(AbstractDeserializedPackageFragmentProvider.this.getComponents());
|
||||
return findPackage;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderOptimized
|
||||
public void collectPackageFragments(FqName fqName, Collection<PackageFragmentDescriptor> packageFragments) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(packageFragments, "packageFragments");
|
||||
CollectionsKt.addIfNotNull(packageFragments, this.fragments.invoke(fqName));
|
||||
}
|
||||
|
||||
public abstract DeserializedPackageFragment findPackage(FqName fqName);
|
||||
|
||||
public final DeserializationComponents getComponents() {
|
||||
DeserializationComponents deserializationComponents = this.components;
|
||||
if (deserializationComponents != null) {
|
||||
return deserializationComponents;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("components");
|
||||
return null;
|
||||
}
|
||||
|
||||
public final KotlinMetadataFinder getFinder() {
|
||||
return this.finder;
|
||||
}
|
||||
|
||||
public final ModuleDescriptor getModuleDescriptor() {
|
||||
return this.moduleDescriptor;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider
|
||||
@Deprecated(message = "for usages use #packageFragments(FqName) at final point, for impl use #collectPackageFragments(FqName, MutableCollection<PackageFragmentDescriptor>)")
|
||||
public List<PackageFragmentDescriptor> getPackageFragments(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
return kotlin.collections.CollectionsKt.listOfNotNull(this.fragments.invoke(fqName));
|
||||
}
|
||||
|
||||
public final StorageManager getStorageManager() {
|
||||
return this.storageManager;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider
|
||||
public Collection<FqName> getSubPackagesOf(FqName fqName, Function1<? super Name, Boolean> nameFilter) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(nameFilter, "nameFilter");
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderOptimized
|
||||
public boolean isEmpty(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
return (this.fragments.isComputed(fqName) ? this.fragments.invoke(fqName) : findPackage(fqName)) == null;
|
||||
}
|
||||
|
||||
public final void setComponents(DeserializationComponents deserializationComponents) {
|
||||
Intrinsics.checkNotNullParameter(deserializationComponents, "<set-?>");
|
||||
this.components = deserializationComponents;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public enum AnnotatedCallableKind {
|
||||
FUNCTION,
|
||||
PROPERTY,
|
||||
PROPERTY_GETTER,
|
||||
PROPERTY_SETTER
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface AnnotationAndConstantLoader<A, C> extends AnnotationLoader<A> {
|
||||
C loadAnnotationDefaultValue(ProtoContainer protoContainer, ProtoBuf.Property property, KotlinType kotlinType);
|
||||
|
||||
C loadPropertyConstant(ProtoContainer protoContainer, ProtoBuf.Property property, KotlinType kotlinType);
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.SerializerExtensionProtocol;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nAnnotationAndConstantLoaderImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationAndConstantLoaderImpl.kt\norg/jetbrains/kotlin/serialization/deserialization/AnnotationAndConstantLoaderImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,143:1\n1549#2:144\n1620#2,3:145\n1549#2:148\n1620#2,3:149\n1549#2:153\n1620#2,3:154\n1549#2:157\n1620#2,3:158\n1549#2:161\n1620#2,3:162\n1549#2:165\n1620#2,3:166\n1549#2:169\n1620#2,3:170\n1549#2:173\n1620#2,3:174\n1549#2:177\n1620#2,3:178\n1#3:152\n*S KotlinDebug\n*F\n+ 1 AnnotationAndConstantLoaderImpl.kt\norg/jetbrains/kotlin/serialization/deserialization/AnnotationAndConstantLoaderImpl\n*L\n39#1:144\n39#1:145,3\n62#1:148\n62#1:149,3\n69#1:153\n69#1:154,3\n76#1:157\n76#1:158,3\n83#1:161\n83#1:162,3\n96#1:165\n96#1:166,3\n116#1:169\n116#1:170,3\n122#1:173\n122#1:174,3\n126#1:177\n126#1:178,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class AnnotationAndConstantLoaderImpl implements AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> {
|
||||
private final AnnotationDeserializer deserializer;
|
||||
private final SerializerExtensionProtocol protocol;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[AnnotatedCallableKind.values().length];
|
||||
try {
|
||||
iArr[AnnotatedCallableKind.PROPERTY.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[AnnotatedCallableKind.PROPERTY_GETTER.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[AnnotatedCallableKind.PROPERTY_SETTER.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public AnnotationAndConstantLoaderImpl(ModuleDescriptor module, NotFoundClasses notFoundClasses, SerializerExtensionProtocol protocol) {
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(notFoundClasses, "notFoundClasses");
|
||||
Intrinsics.checkNotNullParameter(protocol, "protocol");
|
||||
this.protocol = protocol;
|
||||
this.deserializer = new AnnotationDeserializer(module, notFoundClasses);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoader
|
||||
public ConstantValue<?> loadAnnotationDefaultValue(ProtoContainer container, ProtoBuf.Property proto, KotlinType expectedType) {
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(expectedType, "expectedType");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadCallableAnnotations(ProtoContainer container, MessageLite proto, AnnotatedCallableKind kind) {
|
||||
List list;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
if (proto instanceof ProtoBuf.Constructor) {
|
||||
list = (List) ((ProtoBuf.Constructor) proto).getExtension(this.protocol.getConstructorAnnotation());
|
||||
} else if (proto instanceof ProtoBuf.Function) {
|
||||
list = (List) ((ProtoBuf.Function) proto).getExtension(this.protocol.getFunctionAnnotation());
|
||||
} else {
|
||||
if (!(proto instanceof ProtoBuf.Property)) {
|
||||
throw new IllegalStateException(("Unknown message: " + proto).toString());
|
||||
}
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[kind.ordinal()];
|
||||
if (i == 1) {
|
||||
list = (List) ((ProtoBuf.Property) proto).getExtension(this.protocol.getPropertyAnnotation());
|
||||
} else if (i == 2) {
|
||||
list = (List) ((ProtoBuf.Property) proto).getExtension(this.protocol.getPropertyGetterAnnotation());
|
||||
} else {
|
||||
if (i != 3) {
|
||||
throw new IllegalStateException("Unsupported callable kind with property proto");
|
||||
}
|
||||
list = (List) ((ProtoBuf.Property) proto).getExtension(this.protocol.getPropertySetterAnnotation());
|
||||
}
|
||||
}
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadClassAnnotations(ProtoContainer.Class container) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
List list = (List) container.getClassProto().getExtension(this.protocol.getClassAnnotation());
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadEnumEntryAnnotations(ProtoContainer container, ProtoBuf.EnumEntry proto) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
List list = (List) proto.getExtension(this.protocol.getEnumEntryAnnotation());
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadExtensionReceiverParameterAnnotations(ProtoContainer container, MessageLite proto, AnnotatedCallableKind kind) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
List list = null;
|
||||
if (proto instanceof ProtoBuf.Function) {
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Function, List<ProtoBuf.Annotation>> functionExtensionReceiverAnnotation = this.protocol.getFunctionExtensionReceiverAnnotation();
|
||||
if (functionExtensionReceiverAnnotation != null) {
|
||||
list = (List) ((ProtoBuf.Function) proto).getExtension(functionExtensionReceiverAnnotation);
|
||||
}
|
||||
} else {
|
||||
if (!(proto instanceof ProtoBuf.Property)) {
|
||||
throw new IllegalStateException(("Unknown message: " + proto).toString());
|
||||
}
|
||||
int i = WhenMappings.$EnumSwitchMapping$0[kind.ordinal()];
|
||||
if (i != 1 && i != 2 && i != 3) {
|
||||
throw new IllegalStateException(("Unsupported callable kind with property proto for receiver annotations: " + kind).toString());
|
||||
}
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyExtensionReceiverAnnotation = this.protocol.getPropertyExtensionReceiverAnnotation();
|
||||
if (propertyExtensionReceiverAnnotation != null) {
|
||||
list = (List) ((ProtoBuf.Property) proto).getExtension(propertyExtensionReceiverAnnotation);
|
||||
}
|
||||
}
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadPropertyBackingFieldAnnotations(ProtoContainer container, ProtoBuf.Property proto) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyBackingFieldAnnotation = this.protocol.getPropertyBackingFieldAnnotation();
|
||||
List list = propertyBackingFieldAnnotation != null ? (List) proto.getExtension(propertyBackingFieldAnnotation) : null;
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadPropertyDelegateFieldAnnotations(ProtoContainer container, ProtoBuf.Property proto) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, List<ProtoBuf.Annotation>> propertyDelegatedFieldAnnotation = this.protocol.getPropertyDelegatedFieldAnnotation();
|
||||
List list = propertyDelegatedFieldAnnotation != null ? (List) proto.getExtension(propertyDelegatedFieldAnnotation) : null;
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadTypeAnnotations(ProtoBuf.Type proto, NameResolver nameResolver) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
List list = (List) proto.getExtension(this.protocol.getTypeAnnotation());
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), nameResolver));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadTypeParameterAnnotations(ProtoBuf.TypeParameter proto, NameResolver nameResolver) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
List list = (List) proto.getExtension(this.protocol.getTypeParameterAnnotation());
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), nameResolver));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationLoader
|
||||
public List<AnnotationDescriptor> loadValueParameterAnnotations(ProtoContainer container, MessageLite callableProto, AnnotatedCallableKind kind, int i, ProtoBuf.ValueParameter proto) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(callableProto, "callableProto");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
List list = (List) proto.getExtension(this.protocol.getParameterAnnotation());
|
||||
if (list == null) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
List list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(this.deserializer.deserializeAnnotation((ProtoBuf.Annotation) it.next(), container.getNameResolver()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoader
|
||||
public ConstantValue<?> loadPropertyConstant(ProtoContainer container, ProtoBuf.Property proto, KotlinType expectedType) {
|
||||
Intrinsics.checkNotNullParameter(container, "container");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(expectedType, "expectedType");
|
||||
ProtoBuf.Annotation.Argument.Value value = (ProtoBuf.Annotation.Argument.Value) ProtoBufUtilKt.getExtensionOrNull(proto, this.protocol.getCompileTimeValue());
|
||||
if (value == null) {
|
||||
return null;
|
||||
}
|
||||
return this.deserializer.resolveValue(expectedType, value, container.getNameResolver());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.IntIterator;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.RangesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.Flags;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.AnnotationValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ArrayValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.BooleanValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ByteValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.CharValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValueFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.DoubleValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.EnumValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ErrorValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.FloatValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.IntValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.KClassValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.LongValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ShortValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.StringValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.UByteValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.UIntValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ULongValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.UShortValue;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.error.ErrorUtils;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nAnnotationDeserializer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/AnnotationDeserializer\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,127:1\n121#1:147\n121#1:148\n121#1:149\n121#1:150\n1194#2,2:128\n1222#2,4:130\n1603#2,9:134\n1855#2:143\n1856#2:145\n1612#2:146\n1549#2:151\n1620#2,3:152\n1726#2,3:155\n1#3:144\n*S KotlinDebug\n*F\n+ 1 AnnotationDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/AnnotationDeserializer\n*L\n74#1:147\n76#1:148\n77#1:149\n78#1:150\n47#1:128,2\n47#1:130,4\n48#1:134,9\n48#1:143\n48#1:145\n48#1:146\n87#1:151\n87#1:152,3\n112#1:155,3\n48#1:144\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class AnnotationDeserializer {
|
||||
private final ModuleDescriptor module;
|
||||
private final NotFoundClasses notFoundClasses;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[ProtoBuf.Annotation.Argument.Value.Type.values().length];
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.BYTE.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.CHAR.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.SHORT.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.INT.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.LONG.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.FLOAT.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.DOUBLE.ordinal()] = 7;
|
||||
} catch (NoSuchFieldError unused7) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.BOOLEAN.ordinal()] = 8;
|
||||
} catch (NoSuchFieldError unused8) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.STRING.ordinal()] = 9;
|
||||
} catch (NoSuchFieldError unused9) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.CLASS.ordinal()] = 10;
|
||||
} catch (NoSuchFieldError unused10) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.ENUM.ordinal()] = 11;
|
||||
} catch (NoSuchFieldError unused11) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.ANNOTATION.ordinal()] = 12;
|
||||
} catch (NoSuchFieldError unused12) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Annotation.Argument.Value.Type.ARRAY.ordinal()] = 13;
|
||||
} catch (NoSuchFieldError unused13) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
public AnnotationDeserializer(ModuleDescriptor module, NotFoundClasses notFoundClasses) {
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(notFoundClasses, "notFoundClasses");
|
||||
this.module = module;
|
||||
this.notFoundClasses = notFoundClasses;
|
||||
}
|
||||
|
||||
private final boolean doesValueConformToExpectedType(ConstantValue<?> constantValue, KotlinType kotlinType, ProtoBuf.Annotation.Argument.Value value) {
|
||||
ProtoBuf.Annotation.Argument.Value.Type type = value.getType();
|
||||
int i = type == null ? -1 : WhenMappings.$EnumSwitchMapping$0[type.ordinal()];
|
||||
if (i == 10) {
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = kotlinType.getConstructor().mo1394getDeclarationDescriptor();
|
||||
ClassDescriptor classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
|
||||
return classDescriptor == null || KotlinBuiltIns.isKClass(classDescriptor);
|
||||
}
|
||||
if (i != 13) {
|
||||
return Intrinsics.areEqual(constantValue.getType(this.module), kotlinType);
|
||||
}
|
||||
if (!(constantValue instanceof ArrayValue) || ((ArrayValue) constantValue).getValue().size() != value.getArrayElementList().size()) {
|
||||
throw new IllegalStateException(("Deserialized ArrayValue should have the same number of elements as the original array value: " + constantValue).toString());
|
||||
}
|
||||
KotlinType arrayElementType = getBuiltIns().getArrayElementType(kotlinType);
|
||||
Intrinsics.checkNotNullExpressionValue(arrayElementType, "getArrayElementType(...)");
|
||||
ArrayValue arrayValue = (ArrayValue) constantValue;
|
||||
Iterable indices = CollectionsKt.getIndices(arrayValue.getValue());
|
||||
if ((indices instanceof Collection) && ((Collection) indices).isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
Iterator it = indices.iterator();
|
||||
while (it.hasNext()) {
|
||||
int nextInt = ((IntIterator) it).nextInt();
|
||||
ConstantValue<?> constantValue2 = arrayValue.getValue().get(nextInt);
|
||||
ProtoBuf.Annotation.Argument.Value arrayElement = value.getArrayElement(nextInt);
|
||||
Intrinsics.checkNotNullExpressionValue(arrayElement, "getArrayElement(...)");
|
||||
if (!doesValueConformToExpectedType(constantValue2, arrayElementType, arrayElement)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
private final KotlinBuiltIns getBuiltIns() {
|
||||
return this.module.getBuiltIns();
|
||||
}
|
||||
|
||||
private final Pair<Name, ConstantValue<?>> resolveArgument(ProtoBuf.Annotation.Argument argument, Map<Name, ? extends ValueParameterDescriptor> map, NameResolver nameResolver) {
|
||||
ValueParameterDescriptor valueParameterDescriptor = map.get(NameResolverUtilKt.getName(nameResolver, argument.getNameId()));
|
||||
if (valueParameterDescriptor == null) {
|
||||
return null;
|
||||
}
|
||||
Name name = NameResolverUtilKt.getName(nameResolver, argument.getNameId());
|
||||
KotlinType type = valueParameterDescriptor.getType();
|
||||
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
|
||||
ProtoBuf.Annotation.Argument.Value value = argument.getValue();
|
||||
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
|
||||
return new Pair<>(name, resolveValueAndCheckExpectedType(type, value, nameResolver));
|
||||
}
|
||||
|
||||
private final ClassDescriptor resolveClass(ClassId classId) {
|
||||
return FindClassInModuleKt.findNonGenericClassAcrossDependencies(this.module, classId, this.notFoundClasses);
|
||||
}
|
||||
|
||||
private final ConstantValue<?> resolveValueAndCheckExpectedType(KotlinType kotlinType, ProtoBuf.Annotation.Argument.Value value, NameResolver nameResolver) {
|
||||
ConstantValue<?> resolveValue = resolveValue(kotlinType, value, nameResolver);
|
||||
if (!doesValueConformToExpectedType(resolveValue, kotlinType, value)) {
|
||||
resolveValue = null;
|
||||
}
|
||||
if (resolveValue != null) {
|
||||
return resolveValue;
|
||||
}
|
||||
return ErrorValue.Companion.create("Unexpected argument value: actual type " + value.getType() + " != expected type " + kotlinType);
|
||||
}
|
||||
|
||||
public final AnnotationDescriptor deserializeAnnotation(ProtoBuf.Annotation proto, NameResolver nameResolver) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
ClassDescriptor resolveClass = resolveClass(NameResolverUtilKt.getClassId(nameResolver, proto.getId()));
|
||||
Map emptyMap = MapsKt.emptyMap();
|
||||
if (proto.getArgumentCount() != 0 && !ErrorUtils.isError(resolveClass) && DescriptorUtils.isAnnotationClass(resolveClass)) {
|
||||
Collection<ClassConstructorDescriptor> constructors = resolveClass.getConstructors();
|
||||
Intrinsics.checkNotNullExpressionValue(constructors, "getConstructors(...)");
|
||||
ClassConstructorDescriptor classConstructorDescriptor = (ClassConstructorDescriptor) CollectionsKt.singleOrNull(constructors);
|
||||
if (classConstructorDescriptor != null) {
|
||||
List<ValueParameterDescriptor> valueParameters = classConstructorDescriptor.getValueParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
|
||||
List<ValueParameterDescriptor> list = valueParameters;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
|
||||
for (Object obj : list) {
|
||||
linkedHashMap.put(((ValueParameterDescriptor) obj).getName(), obj);
|
||||
}
|
||||
List<ProtoBuf.Annotation.Argument> argumentList = proto.getArgumentList();
|
||||
Intrinsics.checkNotNullExpressionValue(argumentList, "getArgumentList(...)");
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (ProtoBuf.Annotation.Argument argument : argumentList) {
|
||||
Intrinsics.checkNotNull(argument);
|
||||
Pair<Name, ConstantValue<?>> resolveArgument = resolveArgument(argument, linkedHashMap, nameResolver);
|
||||
if (resolveArgument != null) {
|
||||
arrayList.add(resolveArgument);
|
||||
}
|
||||
}
|
||||
emptyMap = MapsKt.toMap(arrayList);
|
||||
}
|
||||
}
|
||||
return new AnnotationDescriptorImpl(resolveClass.getDefaultType(), emptyMap, SourceElement.NO_SOURCE);
|
||||
}
|
||||
|
||||
public final ConstantValue<?> resolveValue(KotlinType expectedType, ProtoBuf.Annotation.Argument.Value value, NameResolver nameResolver) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(expectedType, "expectedType");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Boolean bool = Flags.IS_UNSIGNED.get(value.getFlags());
|
||||
Intrinsics.checkNotNullExpressionValue(bool, "get(...)");
|
||||
boolean booleanValue = bool.booleanValue();
|
||||
ProtoBuf.Annotation.Argument.Value.Type type = value.getType();
|
||||
switch (type == null ? -1 : WhenMappings.$EnumSwitchMapping$0[type.ordinal()]) {
|
||||
case 1:
|
||||
byte intValue = (byte) value.getIntValue();
|
||||
return booleanValue ? new UByteValue(intValue) : new ByteValue(intValue);
|
||||
case 2:
|
||||
return new CharValue((char) value.getIntValue());
|
||||
case 3:
|
||||
short intValue2 = (short) value.getIntValue();
|
||||
return booleanValue ? new UShortValue(intValue2) : new ShortValue(intValue2);
|
||||
case 4:
|
||||
int intValue3 = (int) value.getIntValue();
|
||||
return booleanValue ? new UIntValue(intValue3) : new IntValue(intValue3);
|
||||
case 5:
|
||||
long intValue4 = value.getIntValue();
|
||||
return booleanValue ? new ULongValue(intValue4) : new LongValue(intValue4);
|
||||
case 6:
|
||||
return new FloatValue(value.getFloatValue());
|
||||
case 7:
|
||||
return new DoubleValue(value.getDoubleValue());
|
||||
case 8:
|
||||
return new BooleanValue(value.getIntValue() != 0);
|
||||
case 9:
|
||||
return new StringValue(nameResolver.getString(value.getStringValue()));
|
||||
case 10:
|
||||
return new KClassValue(NameResolverUtilKt.getClassId(nameResolver, value.getClassId()), value.getArrayDimensionCount());
|
||||
case 11:
|
||||
return new EnumValue(NameResolverUtilKt.getClassId(nameResolver, value.getClassId()), NameResolverUtilKt.getName(nameResolver, value.getEnumValueId()));
|
||||
case 12:
|
||||
ProtoBuf.Annotation annotation = value.getAnnotation();
|
||||
Intrinsics.checkNotNullExpressionValue(annotation, "getAnnotation(...)");
|
||||
return new AnnotationValue(deserializeAnnotation(annotation, nameResolver));
|
||||
case 13:
|
||||
ConstantValueFactory constantValueFactory = ConstantValueFactory.INSTANCE;
|
||||
List<ProtoBuf.Annotation.Argument.Value> arrayElementList = value.getArrayElementList();
|
||||
Intrinsics.checkNotNullExpressionValue(arrayElementList, "getArrayElementList(...)");
|
||||
List<ProtoBuf.Annotation.Argument.Value> list = arrayElementList;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (ProtoBuf.Annotation.Argument.Value value2 : list) {
|
||||
SimpleType anyType = getBuiltIns().getAnyType();
|
||||
Intrinsics.checkNotNullExpressionValue(anyType, "getAnyType(...)");
|
||||
Intrinsics.checkNotNull(value2);
|
||||
arrayList.add(resolveValue(anyType, value2, nameResolver));
|
||||
}
|
||||
return constantValueFactory.createArrayValue(arrayList, expectedType);
|
||||
default:
|
||||
throw new IllegalStateException(("Unsupported annotation argument type: " + value.getType() + " (expected " + expectedType + ')').toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoContainer;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface AnnotationLoader<A> {
|
||||
List<A> loadCallableAnnotations(ProtoContainer protoContainer, MessageLite messageLite, AnnotatedCallableKind annotatedCallableKind);
|
||||
|
||||
List<A> loadClassAnnotations(ProtoContainer.Class r12);
|
||||
|
||||
List<A> loadEnumEntryAnnotations(ProtoContainer protoContainer, ProtoBuf.EnumEntry enumEntry);
|
||||
|
||||
List<A> loadExtensionReceiverParameterAnnotations(ProtoContainer protoContainer, MessageLite messageLite, AnnotatedCallableKind annotatedCallableKind);
|
||||
|
||||
List<A> loadPropertyBackingFieldAnnotations(ProtoContainer protoContainer, ProtoBuf.Property property);
|
||||
|
||||
List<A> loadPropertyDelegateFieldAnnotations(ProtoContainer protoContainer, ProtoBuf.Property property);
|
||||
|
||||
List<A> loadTypeAnnotations(ProtoBuf.Type type, NameResolver nameResolver);
|
||||
|
||||
List<A> loadTypeParameterAnnotations(ProtoBuf.TypeParameter typeParameter, NameResolver nameResolver);
|
||||
|
||||
List<A> loadValueParameterAnnotations(ProtoContainer protoContainer, MessageLite messageLite, AnnotatedCallableKind annotatedCallableKind, int i, ProtoBuf.ValueParameter valueParameter);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ClassData {
|
||||
private final ProtoBuf.Class classProto;
|
||||
private final BinaryVersion metadataVersion;
|
||||
private final NameResolver nameResolver;
|
||||
private final SourceElement sourceElement;
|
||||
|
||||
public ClassData(NameResolver nameResolver, ProtoBuf.Class classProto, BinaryVersion metadataVersion, SourceElement sourceElement) {
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(classProto, "classProto");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
Intrinsics.checkNotNullParameter(sourceElement, "sourceElement");
|
||||
this.nameResolver = nameResolver;
|
||||
this.classProto = classProto;
|
||||
this.metadataVersion = metadataVersion;
|
||||
this.sourceElement = sourceElement;
|
||||
}
|
||||
|
||||
public final NameResolver component1() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
public final ProtoBuf.Class component2() {
|
||||
return this.classProto;
|
||||
}
|
||||
|
||||
public final BinaryVersion component3() {
|
||||
return this.metadataVersion;
|
||||
}
|
||||
|
||||
public final SourceElement component4() {
|
||||
return this.sourceElement;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof ClassData)) {
|
||||
return false;
|
||||
}
|
||||
ClassData classData = (ClassData) obj;
|
||||
return Intrinsics.areEqual(this.nameResolver, classData.nameResolver) && Intrinsics.areEqual(this.classProto, classData.classProto) && Intrinsics.areEqual(this.metadataVersion, classData.metadataVersion) && Intrinsics.areEqual(this.sourceElement, classData.sourceElement);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.sourceElement.hashCode() + ((this.metadataVersion.hashCode() + ((this.classProto.hashCode() + (this.nameResolver.hashCode() * 31)) * 31)) * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "ClassData(nameResolver=" + this.nameResolver + ", classProto=" + this.classProto + ", metadataVersion=" + this.metadataVersion + ", sourceElement=" + this.sourceElement + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ClassDataFinder {
|
||||
ClassData findClassData(ClassId classId);
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nClassDeserializer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ClassDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/ClassDeserializer\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,91:1\n1#2:92\n288#3,2:93\n*S KotlinDebug\n*F\n+ 1 ClassDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/ClassDeserializer\n*L\n57#1:93,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ClassDeserializer {
|
||||
private final Function1<ClassKey, ClassDescriptor> classes;
|
||||
private final DeserializationComponents components;
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private static final Set<ClassId> BLACK_LIST = SetsKt.setOf(ClassId.topLevel(StandardNames.FqNames.cloneable.toSafe()));
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class ClassKey {
|
||||
private final ClassData classData;
|
||||
private final ClassId classId;
|
||||
|
||||
public ClassKey(ClassId classId, ClassData classData) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
this.classId = classId;
|
||||
this.classData = classData;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
return (obj instanceof ClassKey) && Intrinsics.areEqual(this.classId, ((ClassKey) obj).classId);
|
||||
}
|
||||
|
||||
public final ClassData getClassData() {
|
||||
return this.classData;
|
||||
}
|
||||
|
||||
public final ClassId getClassId() {
|
||||
return this.classId;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.classId.hashCode();
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final Set<ClassId> getBLACK_LIST() {
|
||||
return ClassDeserializer.BLACK_LIST;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public ClassDeserializer(DeserializationComponents components) {
|
||||
Intrinsics.checkNotNullParameter(components, "components");
|
||||
this.components = components;
|
||||
this.classes = components.getStorageManager().createMemoizedFunctionWithNullableValues(new Function1<ClassKey, ClassDescriptor>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDeserializer$classes$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final ClassDescriptor invoke(ClassDeserializer.ClassKey key) {
|
||||
ClassDescriptor createClass;
|
||||
Intrinsics.checkNotNullParameter(key, "key");
|
||||
createClass = ClassDeserializer.this.createClass(key);
|
||||
return createClass;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public final ClassDescriptor createClass(ClassKey classKey) {
|
||||
Object obj;
|
||||
DeserializationContext createContext;
|
||||
ClassId classId = classKey.getClassId();
|
||||
Iterator<ClassDescriptorFactory> it = this.components.getFictitiousClassDescriptorFactories().iterator();
|
||||
while (it.hasNext()) {
|
||||
ClassDescriptor createClass = it.next().createClass(classId);
|
||||
if (createClass != null) {
|
||||
return createClass;
|
||||
}
|
||||
}
|
||||
if (BLACK_LIST.contains(classId)) {
|
||||
return null;
|
||||
}
|
||||
ClassData classData = classKey.getClassData();
|
||||
if (classData == null && (classData = this.components.getClassDataFinder().findClassData(classId)) == null) {
|
||||
return null;
|
||||
}
|
||||
NameResolver component1 = classData.component1();
|
||||
ProtoBuf.Class component2 = classData.component2();
|
||||
BinaryVersion component3 = classData.component3();
|
||||
SourceElement component4 = classData.component4();
|
||||
ClassId outerClassId = classId.getOuterClassId();
|
||||
if (outerClassId != null) {
|
||||
ClassDescriptor deserializeClass$default = deserializeClass$default(this, outerClassId, null, 2, null);
|
||||
DeserializedClassDescriptor deserializedClassDescriptor = deserializeClass$default instanceof DeserializedClassDescriptor ? (DeserializedClassDescriptor) deserializeClass$default : null;
|
||||
if (deserializedClassDescriptor == null) {
|
||||
return null;
|
||||
}
|
||||
Name shortClassName = classId.getShortClassName();
|
||||
Intrinsics.checkNotNullExpressionValue(shortClassName, "getShortClassName(...)");
|
||||
if (!deserializedClassDescriptor.hasNestedClass$deserialization(shortClassName)) {
|
||||
return null;
|
||||
}
|
||||
createContext = deserializedClassDescriptor.getC();
|
||||
} else {
|
||||
PackageFragmentProvider packageFragmentProvider = this.components.getPackageFragmentProvider();
|
||||
FqName packageFqName = classId.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName, "getPackageFqName(...)");
|
||||
Iterator<T> it2 = PackageFragmentProviderKt.packageFragments(packageFragmentProvider, packageFqName).iterator();
|
||||
while (true) {
|
||||
if (!it2.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it2.next();
|
||||
PackageFragmentDescriptor packageFragmentDescriptor = (PackageFragmentDescriptor) obj;
|
||||
if (!(packageFragmentDescriptor instanceof DeserializedPackageFragment)) {
|
||||
break;
|
||||
}
|
||||
Name shortClassName2 = classId.getShortClassName();
|
||||
Intrinsics.checkNotNullExpressionValue(shortClassName2, "getShortClassName(...)");
|
||||
if (((DeserializedPackageFragment) packageFragmentDescriptor).hasTopLevelClass(shortClassName2)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
PackageFragmentDescriptor packageFragmentDescriptor2 = (PackageFragmentDescriptor) obj;
|
||||
if (packageFragmentDescriptor2 == null) {
|
||||
return null;
|
||||
}
|
||||
DeserializationComponents deserializationComponents = this.components;
|
||||
ProtoBuf.TypeTable typeTable = component2.getTypeTable();
|
||||
Intrinsics.checkNotNullExpressionValue(typeTable, "getTypeTable(...)");
|
||||
TypeTable typeTable2 = new TypeTable(typeTable);
|
||||
VersionRequirementTable.Companion companion = VersionRequirementTable.Companion;
|
||||
ProtoBuf.VersionRequirementTable versionRequirementTable = component2.getVersionRequirementTable();
|
||||
Intrinsics.checkNotNullExpressionValue(versionRequirementTable, "getVersionRequirementTable(...)");
|
||||
createContext = deserializationComponents.createContext(packageFragmentDescriptor2, component1, typeTable2, companion.create(versionRequirementTable), component3, null);
|
||||
component3 = component3;
|
||||
}
|
||||
return new DeserializedClassDescriptor(createContext, component2, component1, component3, component4);
|
||||
}
|
||||
|
||||
public static /* synthetic */ ClassDescriptor deserializeClass$default(ClassDeserializer classDeserializer, ClassId classId, ClassData classData, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
classData = null;
|
||||
}
|
||||
return classDeserializer.deserializeClass(classId, classData);
|
||||
}
|
||||
|
||||
public final ClassDescriptor deserializeClass(ClassId classId, ClassData classData) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
return this.classes.invoke(new ClassKey(classId, classData));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.Pair;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ContractDeserializer {
|
||||
public static final Companion Companion = Companion.$$INSTANCE;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
static final /* synthetic */ Companion $$INSTANCE = new Companion();
|
||||
private static final ContractDeserializer DEFAULT = new ContractDeserializer() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ContractDeserializer$Companion$DEFAULT$1
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ContractDeserializer
|
||||
public Pair deserializeContractFromFunction(ProtoBuf.Function proto, FunctionDescriptor ownerFunction, TypeTable typeTable, TypeDeserializer typeDeserializer) {
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(ownerFunction, "ownerFunction");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(typeDeserializer, "typeDeserializer");
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final ContractDeserializer getDEFAULT() {
|
||||
return DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
Pair<CallableDescriptor.UserDataKey<?>, Object> deserializeContractFromFunction(ProtoBuf.Function function, FunctionDescriptor functionDescriptor, TypeTable typeTable, TypeDeserializer typeDeserializer);
|
||||
}
|
||||
@@ -0,0 +1,198 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.LookupTracker;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.ExtensionRegistryLite;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.sam.SamConversionResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.EnumEntriesDeserializationSupport;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.DefaultTypeAttributeTranslator;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributeTranslator;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.NewKotlinTypeChecker;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializationComponents {
|
||||
private final AdditionalClassPartsProvider additionalClassPartsProvider;
|
||||
private final AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> annotationAndConstantLoader;
|
||||
private final ClassDataFinder classDataFinder;
|
||||
private final ClassDeserializer classDeserializer;
|
||||
private final DeserializationConfiguration configuration;
|
||||
private final ContractDeserializer contractDeserializer;
|
||||
private final EnumEntriesDeserializationSupport enumEntriesDeserializationSupport;
|
||||
private final ErrorReporter errorReporter;
|
||||
private final ExtensionRegistryLite extensionRegistryLite;
|
||||
private final Iterable<ClassDescriptorFactory> fictitiousClassDescriptorFactories;
|
||||
private final FlexibleTypeDeserializer flexibleTypeDeserializer;
|
||||
private final NewKotlinTypeChecker kotlinTypeChecker;
|
||||
private final LocalClassifierTypeSettings localClassifierTypeSettings;
|
||||
private final LookupTracker lookupTracker;
|
||||
private final ModuleDescriptor moduleDescriptor;
|
||||
private final NotFoundClasses notFoundClasses;
|
||||
private final PackageFragmentProvider packageFragmentProvider;
|
||||
private final PlatformDependentDeclarationFilter platformDependentDeclarationFilter;
|
||||
private final SamConversionResolver samConversionResolver;
|
||||
private final StorageManager storageManager;
|
||||
private final List<TypeAttributeTranslator> typeAttributeTranslators;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public DeserializationComponents(StorageManager storageManager, ModuleDescriptor moduleDescriptor, DeserializationConfiguration configuration, ClassDataFinder classDataFinder, AnnotationAndConstantLoader<? extends AnnotationDescriptor, ? extends ConstantValue<?>> annotationAndConstantLoader, PackageFragmentProvider packageFragmentProvider, LocalClassifierTypeSettings localClassifierTypeSettings, ErrorReporter errorReporter, LookupTracker lookupTracker, FlexibleTypeDeserializer flexibleTypeDeserializer, Iterable<? extends ClassDescriptorFactory> fictitiousClassDescriptorFactories, NotFoundClasses notFoundClasses, ContractDeserializer contractDeserializer, AdditionalClassPartsProvider additionalClassPartsProvider, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, ExtensionRegistryLite extensionRegistryLite, NewKotlinTypeChecker kotlinTypeChecker, SamConversionResolver samConversionResolver, List<? extends TypeAttributeTranslator> typeAttributeTranslators, EnumEntriesDeserializationSupport enumEntriesDeserializationSupport) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(moduleDescriptor, "moduleDescriptor");
|
||||
Intrinsics.checkNotNullParameter(configuration, "configuration");
|
||||
Intrinsics.checkNotNullParameter(classDataFinder, "classDataFinder");
|
||||
Intrinsics.checkNotNullParameter(annotationAndConstantLoader, "annotationAndConstantLoader");
|
||||
Intrinsics.checkNotNullParameter(packageFragmentProvider, "packageFragmentProvider");
|
||||
Intrinsics.checkNotNullParameter(localClassifierTypeSettings, "localClassifierTypeSettings");
|
||||
Intrinsics.checkNotNullParameter(errorReporter, "errorReporter");
|
||||
Intrinsics.checkNotNullParameter(lookupTracker, "lookupTracker");
|
||||
Intrinsics.checkNotNullParameter(flexibleTypeDeserializer, "flexibleTypeDeserializer");
|
||||
Intrinsics.checkNotNullParameter(fictitiousClassDescriptorFactories, "fictitiousClassDescriptorFactories");
|
||||
Intrinsics.checkNotNullParameter(notFoundClasses, "notFoundClasses");
|
||||
Intrinsics.checkNotNullParameter(contractDeserializer, "contractDeserializer");
|
||||
Intrinsics.checkNotNullParameter(additionalClassPartsProvider, "additionalClassPartsProvider");
|
||||
Intrinsics.checkNotNullParameter(platformDependentDeclarationFilter, "platformDependentDeclarationFilter");
|
||||
Intrinsics.checkNotNullParameter(extensionRegistryLite, "extensionRegistryLite");
|
||||
Intrinsics.checkNotNullParameter(kotlinTypeChecker, "kotlinTypeChecker");
|
||||
Intrinsics.checkNotNullParameter(samConversionResolver, "samConversionResolver");
|
||||
Intrinsics.checkNotNullParameter(typeAttributeTranslators, "typeAttributeTranslators");
|
||||
Intrinsics.checkNotNullParameter(enumEntriesDeserializationSupport, "enumEntriesDeserializationSupport");
|
||||
this.storageManager = storageManager;
|
||||
this.moduleDescriptor = moduleDescriptor;
|
||||
this.configuration = configuration;
|
||||
this.classDataFinder = classDataFinder;
|
||||
this.annotationAndConstantLoader = annotationAndConstantLoader;
|
||||
this.packageFragmentProvider = packageFragmentProvider;
|
||||
this.localClassifierTypeSettings = localClassifierTypeSettings;
|
||||
this.errorReporter = errorReporter;
|
||||
this.lookupTracker = lookupTracker;
|
||||
this.flexibleTypeDeserializer = flexibleTypeDeserializer;
|
||||
this.fictitiousClassDescriptorFactories = fictitiousClassDescriptorFactories;
|
||||
this.notFoundClasses = notFoundClasses;
|
||||
this.contractDeserializer = contractDeserializer;
|
||||
this.additionalClassPartsProvider = additionalClassPartsProvider;
|
||||
this.platformDependentDeclarationFilter = platformDependentDeclarationFilter;
|
||||
this.extensionRegistryLite = extensionRegistryLite;
|
||||
this.kotlinTypeChecker = kotlinTypeChecker;
|
||||
this.samConversionResolver = samConversionResolver;
|
||||
this.typeAttributeTranslators = typeAttributeTranslators;
|
||||
this.enumEntriesDeserializationSupport = enumEntriesDeserializationSupport;
|
||||
this.classDeserializer = new ClassDeserializer(this);
|
||||
}
|
||||
|
||||
public final DeserializationContext createContext(PackageFragmentDescriptor descriptor, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, BinaryVersion metadataVersion, DeserializedContainerSource deserializedContainerSource) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
return new DeserializationContext(this, nameResolver, descriptor, typeTable, versionRequirementTable, metadataVersion, deserializedContainerSource, null, CollectionsKt.emptyList());
|
||||
}
|
||||
|
||||
public final ClassDescriptor deserializeClass(ClassId classId) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
return ClassDeserializer.deserializeClass$default(this.classDeserializer, classId, null, 2, null);
|
||||
}
|
||||
|
||||
public final AdditionalClassPartsProvider getAdditionalClassPartsProvider() {
|
||||
return this.additionalClassPartsProvider;
|
||||
}
|
||||
|
||||
public final AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> getAnnotationAndConstantLoader() {
|
||||
return this.annotationAndConstantLoader;
|
||||
}
|
||||
|
||||
public final ClassDataFinder getClassDataFinder() {
|
||||
return this.classDataFinder;
|
||||
}
|
||||
|
||||
public final ClassDeserializer getClassDeserializer() {
|
||||
return this.classDeserializer;
|
||||
}
|
||||
|
||||
public final DeserializationConfiguration getConfiguration() {
|
||||
return this.configuration;
|
||||
}
|
||||
|
||||
public final ContractDeserializer getContractDeserializer() {
|
||||
return this.contractDeserializer;
|
||||
}
|
||||
|
||||
public final EnumEntriesDeserializationSupport getEnumEntriesDeserializationSupport() {
|
||||
return this.enumEntriesDeserializationSupport;
|
||||
}
|
||||
|
||||
public final ErrorReporter getErrorReporter() {
|
||||
return this.errorReporter;
|
||||
}
|
||||
|
||||
public final ExtensionRegistryLite getExtensionRegistryLite() {
|
||||
return this.extensionRegistryLite;
|
||||
}
|
||||
|
||||
public final Iterable<ClassDescriptorFactory> getFictitiousClassDescriptorFactories() {
|
||||
return this.fictitiousClassDescriptorFactories;
|
||||
}
|
||||
|
||||
public final FlexibleTypeDeserializer getFlexibleTypeDeserializer() {
|
||||
return this.flexibleTypeDeserializer;
|
||||
}
|
||||
|
||||
public final NewKotlinTypeChecker getKotlinTypeChecker() {
|
||||
return this.kotlinTypeChecker;
|
||||
}
|
||||
|
||||
public final LocalClassifierTypeSettings getLocalClassifierTypeSettings() {
|
||||
return this.localClassifierTypeSettings;
|
||||
}
|
||||
|
||||
public final LookupTracker getLookupTracker() {
|
||||
return this.lookupTracker;
|
||||
}
|
||||
|
||||
public final ModuleDescriptor getModuleDescriptor() {
|
||||
return this.moduleDescriptor;
|
||||
}
|
||||
|
||||
public final NotFoundClasses getNotFoundClasses() {
|
||||
return this.notFoundClasses;
|
||||
}
|
||||
|
||||
public final PackageFragmentProvider getPackageFragmentProvider() {
|
||||
return this.packageFragmentProvider;
|
||||
}
|
||||
|
||||
public final PlatformDependentDeclarationFilter getPlatformDependentDeclarationFilter() {
|
||||
return this.platformDependentDeclarationFilter;
|
||||
}
|
||||
|
||||
public final StorageManager getStorageManager() {
|
||||
return this.storageManager;
|
||||
}
|
||||
|
||||
public final List<TypeAttributeTranslator> getTypeAttributeTranslators() {
|
||||
return this.typeAttributeTranslators;
|
||||
}
|
||||
|
||||
public /* synthetic */ DeserializationComponents(StorageManager storageManager, ModuleDescriptor moduleDescriptor, DeserializationConfiguration deserializationConfiguration, ClassDataFinder classDataFinder, AnnotationAndConstantLoader annotationAndConstantLoader, PackageFragmentProvider packageFragmentProvider, LocalClassifierTypeSettings localClassifierTypeSettings, ErrorReporter errorReporter, LookupTracker lookupTracker, FlexibleTypeDeserializer flexibleTypeDeserializer, Iterable iterable, NotFoundClasses notFoundClasses, ContractDeserializer contractDeserializer, AdditionalClassPartsProvider additionalClassPartsProvider, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, ExtensionRegistryLite extensionRegistryLite, NewKotlinTypeChecker newKotlinTypeChecker, SamConversionResolver samConversionResolver, List list, EnumEntriesDeserializationSupport enumEntriesDeserializationSupport, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(storageManager, moduleDescriptor, deserializationConfiguration, classDataFinder, annotationAndConstantLoader, packageFragmentProvider, localClassifierTypeSettings, errorReporter, lookupTracker, flexibleTypeDeserializer, iterable, notFoundClasses, contractDeserializer, (i & 8192) != 0 ? AdditionalClassPartsProvider.None.INSTANCE : additionalClassPartsProvider, (i & 16384) != 0 ? PlatformDependentDeclarationFilter.All.INSTANCE : platformDependentDeclarationFilter, extensionRegistryLite, (65536 & i) != 0 ? NewKotlinTypeChecker.Companion.getDefault() : newKotlinTypeChecker, samConversionResolver, (262144 & i) != 0 ? CollectionsKt.listOf(DefaultTypeAttributeTranslator.INSTANCE) : list, (i & 524288) != 0 ? EnumEntriesDeserializationSupport.Default.INSTANCE : enumEntriesDeserializationSupport);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface DeserializationConfiguration {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Default implements DeserializationConfiguration {
|
||||
public static final Default INSTANCE = new Default();
|
||||
|
||||
private Default() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getAllowUnstableDependencies() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public BinaryVersion getBinaryVersion() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getPreserveDeclarationsOrdering() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getReportErrorsOnPreReleaseDependencies() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getSkipMetadataVersionCheck() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getSkipPrereleaseCheck() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration
|
||||
public boolean getTypeAliasesAllowed() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
boolean getAllowUnstableDependencies();
|
||||
|
||||
BinaryVersion getBinaryVersion();
|
||||
|
||||
boolean getPreserveDeclarationsOrdering();
|
||||
|
||||
boolean getReportErrorsOnPreReleaseDependencies();
|
||||
|
||||
boolean getSkipMetadataVersionCheck();
|
||||
|
||||
boolean getSkipPrereleaseCheck();
|
||||
|
||||
boolean getTypeAliasesAllowed();
|
||||
}
|
||||
@@ -0,0 +1,112 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionSpecificBehaviorKt;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.text.Typography;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializationContext {
|
||||
private final DeserializationComponents components;
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private final DeclarationDescriptor containingDeclaration;
|
||||
private final MemberDeserializer memberDeserializer;
|
||||
private final BinaryVersion metadataVersion;
|
||||
private final NameResolver nameResolver;
|
||||
private final TypeDeserializer typeDeserializer;
|
||||
private final TypeTable typeTable;
|
||||
private final VersionRequirementTable versionRequirementTable;
|
||||
|
||||
public DeserializationContext(DeserializationComponents components, NameResolver nameResolver, DeclarationDescriptor containingDeclaration, TypeTable typeTable, VersionRequirementTable versionRequirementTable, BinaryVersion metadataVersion, DeserializedContainerSource deserializedContainerSource, TypeDeserializer typeDeserializer, List<ProtoBuf.TypeParameter> typeParameters) {
|
||||
String presentableString;
|
||||
Intrinsics.checkNotNullParameter(components, "components");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(containingDeclaration, "containingDeclaration");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
Intrinsics.checkNotNullParameter(typeParameters, "typeParameters");
|
||||
this.components = components;
|
||||
this.nameResolver = nameResolver;
|
||||
this.containingDeclaration = containingDeclaration;
|
||||
this.typeTable = typeTable;
|
||||
this.versionRequirementTable = versionRequirementTable;
|
||||
this.metadataVersion = metadataVersion;
|
||||
this.containerSource = deserializedContainerSource;
|
||||
this.typeDeserializer = new TypeDeserializer(this, typeDeserializer, typeParameters, "Deserializer for \"" + containingDeclaration.getName() + Typography.quote, (deserializedContainerSource == null || (presentableString = deserializedContainerSource.getPresentableString()) == null) ? "[container not found]" : presentableString);
|
||||
this.memberDeserializer = new MemberDeserializer(this);
|
||||
}
|
||||
|
||||
public static /* synthetic */ DeserializationContext childContext$default(DeserializationContext deserializationContext, DeclarationDescriptor declarationDescriptor, List list, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, BinaryVersion binaryVersion, int i, Object obj) {
|
||||
if ((i & 4) != 0) {
|
||||
nameResolver = deserializationContext.nameResolver;
|
||||
}
|
||||
NameResolver nameResolver2 = nameResolver;
|
||||
if ((i & 8) != 0) {
|
||||
typeTable = deserializationContext.typeTable;
|
||||
}
|
||||
TypeTable typeTable2 = typeTable;
|
||||
if ((i & 16) != 0) {
|
||||
versionRequirementTable = deserializationContext.versionRequirementTable;
|
||||
}
|
||||
VersionRequirementTable versionRequirementTable2 = versionRequirementTable;
|
||||
if ((i & 32) != 0) {
|
||||
binaryVersion = deserializationContext.metadataVersion;
|
||||
}
|
||||
return deserializationContext.childContext(declarationDescriptor, list, nameResolver2, typeTable2, versionRequirementTable2, binaryVersion);
|
||||
}
|
||||
|
||||
public final DeserializationContext childContext(DeclarationDescriptor descriptor, List<ProtoBuf.TypeParameter> typeParameterProtos, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, BinaryVersion metadataVersion) {
|
||||
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
|
||||
Intrinsics.checkNotNullParameter(typeParameterProtos, "typeParameterProtos");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
return new DeserializationContext(this.components, nameResolver, descriptor, typeTable, VersionSpecificBehaviorKt.isVersionRequirementTableWrittenCorrectly(metadataVersion) ? versionRequirementTable : this.versionRequirementTable, metadataVersion, this.containerSource, this.typeDeserializer, typeParameterProtos);
|
||||
}
|
||||
|
||||
public final DeserializationComponents getComponents() {
|
||||
return this.components;
|
||||
}
|
||||
|
||||
public final DeserializedContainerSource getContainerSource() {
|
||||
return this.containerSource;
|
||||
}
|
||||
|
||||
public final DeclarationDescriptor getContainingDeclaration() {
|
||||
return this.containingDeclaration;
|
||||
}
|
||||
|
||||
public final MemberDeserializer getMemberDeserializer() {
|
||||
return this.memberDeserializer;
|
||||
}
|
||||
|
||||
public final NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
public final StorageManager getStorageManager() {
|
||||
return this.components.getStorageManager();
|
||||
}
|
||||
|
||||
public final TypeDeserializer getTypeDeserializer() {
|
||||
return this.typeDeserializer;
|
||||
}
|
||||
|
||||
public final TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
public final VersionRequirementTable getVersionRequirementTable() {
|
||||
return this.versionRequirementTable;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderKt;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nDeserializedClassDataFinder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DeserializedClassDataFinder.kt\norg/jetbrains/kotlin/serialization/deserialization/DeserializedClassDataFinder\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,34:1\n1#2:35\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedClassDataFinder implements ClassDataFinder {
|
||||
private final PackageFragmentProvider packageFragmentProvider;
|
||||
|
||||
public DeserializedClassDataFinder(PackageFragmentProvider packageFragmentProvider) {
|
||||
Intrinsics.checkNotNullParameter(packageFragmentProvider, "packageFragmentProvider");
|
||||
this.packageFragmentProvider = packageFragmentProvider;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDataFinder
|
||||
public ClassData findClassData(ClassId classId) {
|
||||
ClassData findClassData;
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
PackageFragmentProvider packageFragmentProvider = this.packageFragmentProvider;
|
||||
FqName packageFqName = classId.getPackageFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(packageFqName, "getPackageFqName(...)");
|
||||
for (PackageFragmentDescriptor packageFragmentDescriptor : PackageFragmentProviderKt.packageFragments(packageFragmentProvider, packageFqName)) {
|
||||
if ((packageFragmentDescriptor instanceof DeserializedPackageFragment) && (findClassData = ((DeserializedPackageFragment) packageFragmentDescriptor).getClassDataFinder().findClassData(classId)) != null) {
|
||||
return findClassData;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.PackageFragmentDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class DeserializedPackageFragment extends PackageFragmentDescriptorImpl {
|
||||
private final StorageManager storageManager;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DeserializedPackageFragment(FqName fqName, StorageManager storageManager, ModuleDescriptor module) {
|
||||
super(module, fqName);
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
this.storageManager = storageManager;
|
||||
}
|
||||
|
||||
public abstract ClassDataFinder getClassDataFinder();
|
||||
|
||||
public boolean hasTopLevelClass(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
MemberScope memberScope = getMemberScope();
|
||||
return (memberScope instanceof DeserializedMemberScope) && ((DeserializedMemberScope) memberScope).getClassNames$deserialization().contains(name);
|
||||
}
|
||||
|
||||
public abstract void initialize(DeserializationComponents deserializationComponents);
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolverImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPackageMemberScope;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class DeserializedPackageFragmentImpl extends DeserializedPackageFragment {
|
||||
private MemberScope _memberScope;
|
||||
private ProtoBuf.PackageFragment _proto;
|
||||
private final ProtoBasedClassDataFinder classDataFinder;
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private final BinaryVersion metadataVersion;
|
||||
private final NameResolverImpl nameResolver;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DeserializedPackageFragmentImpl(FqName fqName, StorageManager storageManager, ModuleDescriptor module, ProtoBuf.PackageFragment proto, BinaryVersion metadataVersion, DeserializedContainerSource deserializedContainerSource) {
|
||||
super(fqName, storageManager, module);
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
this.metadataVersion = metadataVersion;
|
||||
this.containerSource = deserializedContainerSource;
|
||||
ProtoBuf.StringTable strings = proto.getStrings();
|
||||
Intrinsics.checkNotNullExpressionValue(strings, "getStrings(...)");
|
||||
ProtoBuf.QualifiedNameTable qualifiedNames = proto.getQualifiedNames();
|
||||
Intrinsics.checkNotNullExpressionValue(qualifiedNames, "getQualifiedNames(...)");
|
||||
NameResolverImpl nameResolverImpl = new NameResolverImpl(strings, qualifiedNames);
|
||||
this.nameResolver = nameResolverImpl;
|
||||
this.classDataFinder = new ProtoBasedClassDataFinder(proto, nameResolverImpl, metadataVersion, new Function1<ClassId, SourceElement>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl$classDataFinder$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final SourceElement invoke(ClassId it) {
|
||||
DeserializedContainerSource deserializedContainerSource2;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
deserializedContainerSource2 = DeserializedPackageFragmentImpl.this.containerSource;
|
||||
if (deserializedContainerSource2 != null) {
|
||||
return deserializedContainerSource2;
|
||||
}
|
||||
SourceElement NO_SOURCE = SourceElement.NO_SOURCE;
|
||||
Intrinsics.checkNotNullExpressionValue(NO_SOURCE, "NO_SOURCE");
|
||||
return NO_SOURCE;
|
||||
}
|
||||
});
|
||||
this._proto = proto;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor
|
||||
public MemberScope getMemberScope() {
|
||||
MemberScope memberScope = this._memberScope;
|
||||
if (memberScope != null) {
|
||||
return memberScope;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("_memberScope");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragment
|
||||
public void initialize(DeserializationComponents components) {
|
||||
Intrinsics.checkNotNullParameter(components, "components");
|
||||
ProtoBuf.PackageFragment packageFragment = this._proto;
|
||||
if (packageFragment == null) {
|
||||
throw new IllegalStateException("Repeated call to DeserializedPackageFragmentImpl::initialize");
|
||||
}
|
||||
this._proto = null;
|
||||
ProtoBuf.Package r4 = packageFragment.getPackage();
|
||||
Intrinsics.checkNotNullExpressionValue(r4, "getPackage(...)");
|
||||
this._memberScope = new DeserializedPackageMemberScope(this, r4, this.nameResolver, this.metadataVersion, this.containerSource, components, "scope of " + this, new Function0<Collection<? extends Name>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl$initialize$1
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Collection<? extends Name> invoke() {
|
||||
int collectionSizeOrDefault;
|
||||
Collection<ClassId> allClassIds = DeserializedPackageFragmentImpl.this.getClassDataFinder().getAllClassIds();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : allClassIds) {
|
||||
ClassId classId = (ClassId) obj;
|
||||
if (!classId.isNestedClass() && !ClassDeserializer.Companion.getBLACK_LIST().contains(classId)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(((ClassId) it.next()).getShortClassName());
|
||||
}
|
||||
return arrayList2;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragment
|
||||
public ProtoBasedClassDataFinder getClassDataFinder() {
|
||||
return this.classDataFinder;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface EnumEntriesDeserializationSupport {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Default implements EnumEntriesDeserializationSupport {
|
||||
public static final Default INSTANCE = new Default();
|
||||
|
||||
private Default() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.EnumEntriesDeserializationSupport
|
||||
public Boolean canSynthesizeEnumEntries() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Boolean canSynthesizeEnumEntries();
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface ErrorReporter {
|
||||
public static final ErrorReporter DO_NOTHING = new ErrorReporter() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.ErrorReporter.1
|
||||
private static /* synthetic */ void $$$reportNull$$$0(int i) {
|
||||
Object[] objArr = new Object[3];
|
||||
if (i != 1) {
|
||||
objArr[0] = "descriptor";
|
||||
} else {
|
||||
objArr[0] = "unresolvedSuperClasses";
|
||||
}
|
||||
objArr[1] = "kotlin/reflect/jvm/internal/impl/serialization/deserialization/ErrorReporter$1";
|
||||
if (i != 2) {
|
||||
objArr[2] = "reportIncompleteHierarchy";
|
||||
} else {
|
||||
objArr[2] = "reportCannotInferVisibility";
|
||||
}
|
||||
throw new IllegalArgumentException(String.format("Argument for @NotNull parameter '%s' of %s.%s must not be null", objArr));
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ErrorReporter
|
||||
public void reportCannotInferVisibility(CallableMemberDescriptor callableMemberDescriptor) {
|
||||
if (callableMemberDescriptor == null) {
|
||||
$$$reportNull$$$0(2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ErrorReporter
|
||||
public void reportIncompleteHierarchy(ClassDescriptor classDescriptor, List<String> list) {
|
||||
if (classDescriptor == null) {
|
||||
$$$reportNull$$$0(0);
|
||||
}
|
||||
if (list == null) {
|
||||
$$$reportNull$$$0(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
void reportCannotInferVisibility(CallableMemberDescriptor callableMemberDescriptor);
|
||||
|
||||
void reportIncompleteHierarchy(ClassDescriptor classDescriptor, List<String> list);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface FlexibleTypeDeserializer {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class ThrowException implements FlexibleTypeDeserializer {
|
||||
public static final ThrowException INSTANCE = new ThrowException();
|
||||
|
||||
private ThrowException() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.FlexibleTypeDeserializer
|
||||
public KotlinType create(ProtoBuf.Type proto, String flexibleId, SimpleType lowerBound, SimpleType upperBound) {
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(flexibleId, "flexibleId");
|
||||
Intrinsics.checkNotNullParameter(lowerBound, "lowerBound");
|
||||
Intrinsics.checkNotNullParameter(upperBound, "upperBound");
|
||||
throw new IllegalArgumentException("This method should not be used.");
|
||||
}
|
||||
}
|
||||
|
||||
KotlinType create(ProtoBuf.Type type, String str, SimpleType simpleType, SimpleType simpleType2);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class IncompatibleVersionErrorData<T> {
|
||||
private final T actualVersion;
|
||||
private final ClassId classId;
|
||||
private final T compilerVersion;
|
||||
private final T expectedVersion;
|
||||
private final String filePath;
|
||||
private final T languageVersion;
|
||||
|
||||
public IncompatibleVersionErrorData(T t2, T t4, T t5, T t6, String filePath, ClassId classId) {
|
||||
Intrinsics.checkNotNullParameter(filePath, "filePath");
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
this.actualVersion = t2;
|
||||
this.compilerVersion = t4;
|
||||
this.languageVersion = t5;
|
||||
this.expectedVersion = t6;
|
||||
this.filePath = filePath;
|
||||
this.classId = classId;
|
||||
}
|
||||
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof IncompatibleVersionErrorData)) {
|
||||
return false;
|
||||
}
|
||||
IncompatibleVersionErrorData incompatibleVersionErrorData = (IncompatibleVersionErrorData) obj;
|
||||
return Intrinsics.areEqual(this.actualVersion, incompatibleVersionErrorData.actualVersion) && Intrinsics.areEqual(this.compilerVersion, incompatibleVersionErrorData.compilerVersion) && Intrinsics.areEqual(this.languageVersion, incompatibleVersionErrorData.languageVersion) && Intrinsics.areEqual(this.expectedVersion, incompatibleVersionErrorData.expectedVersion) && Intrinsics.areEqual(this.filePath, incompatibleVersionErrorData.filePath) && Intrinsics.areEqual(this.classId, incompatibleVersionErrorData.classId);
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
T t2 = this.actualVersion;
|
||||
int hashCode = (t2 == null ? 0 : t2.hashCode()) * 31;
|
||||
T t4 = this.compilerVersion;
|
||||
int hashCode2 = (hashCode + (t4 == null ? 0 : t4.hashCode())) * 31;
|
||||
T t5 = this.languageVersion;
|
||||
int hashCode3 = (hashCode2 + (t5 == null ? 0 : t5.hashCode())) * 31;
|
||||
T t6 = this.expectedVersion;
|
||||
return this.classId.hashCode() + a.d(this.filePath, (hashCode3 + (t6 != null ? t6.hashCode() : 0)) * 31, 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "IncompatibleVersionErrorData(actualVersion=" + this.actualVersion + ", compilerVersion=" + this.compilerVersion + ", languageVersion=" + this.languageVersion + ", expectedVersion=" + this.expectedVersion + ", filePath=" + this.filePath + ", classId=" + this.classId + ')';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class JvmEnumEntriesDeserializationSupport implements EnumEntriesDeserializationSupport {
|
||||
public static final JvmEnumEntriesDeserializationSupport INSTANCE = new JvmEnumEntriesDeserializationSupport();
|
||||
|
||||
private JvmEnumEntriesDeserializationSupport() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.EnumEntriesDeserializationSupport
|
||||
public Boolean canSynthesizeEnumEntries() {
|
||||
return Boolean.TRUE;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.io.InputStream;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface KotlinMetadataFinder {
|
||||
InputStream findBuiltInsData(FqName fqName);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface LocalClassifierTypeSettings {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Default implements LocalClassifierTypeSettings {
|
||||
public static final Default INSTANCE = new Default();
|
||||
|
||||
private Default() {
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.LocalClassifierTypeSettings
|
||||
public SimpleType getReplacementTypeForLocalClassifiers() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
SimpleType getReplacementTypeForLocalClassifiers();
|
||||
}
|
||||
@@ -0,0 +1,540 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.Pair;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.FieldDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.PropertyGetterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.PropertySetterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ValueParameterDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.Flags;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedAnnotations;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedSimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.NonEmptyDeserializedAnnotations;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.NullableLazyValue;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nMemberDeserializer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 MemberDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/MemberDeserializer\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,371:1\n1#2:372\n1#2:391\n1559#3:373\n1590#3,4:374\n1569#3,11:378\n1864#3,2:389\n1866#3:392\n1580#3:393\n1549#3:394\n1620#3,3:395\n1559#3:398\n1590#3,4:399\n*S KotlinDebug\n*F\n+ 1 MemberDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/MemberDeserializer\n*L\n215#1:391\n63#1:373\n63#1:374,4\n215#1:378,11\n215#1:389,2\n215#1:392\n215#1:393\n243#1:394\n243#1:395,3\n327#1:398\n327#1:399,4\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class MemberDeserializer {
|
||||
private final AnnotationDeserializer annotationDeserializer;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
private final DeserializationContext f7137c;
|
||||
|
||||
public MemberDeserializer(DeserializationContext c4) {
|
||||
Intrinsics.checkNotNullParameter(c4, "c");
|
||||
this.f7137c = c4;
|
||||
this.annotationDeserializer = new AnnotationDeserializer(c4.getComponents().getModuleDescriptor(), c4.getComponents().getNotFoundClasses());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final ProtoContainer asProtoContainer(DeclarationDescriptor declarationDescriptor) {
|
||||
if (declarationDescriptor instanceof PackageFragmentDescriptor) {
|
||||
return new ProtoContainer.Package(((PackageFragmentDescriptor) declarationDescriptor).getFqName(), this.f7137c.getNameResolver(), this.f7137c.getTypeTable(), this.f7137c.getContainerSource());
|
||||
}
|
||||
if (declarationDescriptor instanceof DeserializedClassDescriptor) {
|
||||
return ((DeserializedClassDescriptor) declarationDescriptor).getThisAsProtoContainer$deserialization();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final Annotations getAnnotations(final MessageLite messageLite, int i, final AnnotatedCallableKind annotatedCallableKind) {
|
||||
return !Flags.HAS_ANNOTATIONS.get(i).booleanValue() ? Annotations.Companion.getEMPTY() : new NonEmptyDeserializedAnnotations(this.f7137c.getStorageManager(), new Function0<List<? extends AnnotationDescriptor>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getAnnotations$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends AnnotationDescriptor> invoke() {
|
||||
DeserializationContext deserializationContext;
|
||||
ProtoContainer asProtoContainer;
|
||||
List<? extends AnnotationDescriptor> list;
|
||||
DeserializationContext deserializationContext2;
|
||||
MemberDeserializer memberDeserializer = MemberDeserializer.this;
|
||||
deserializationContext = memberDeserializer.f7137c;
|
||||
asProtoContainer = memberDeserializer.asProtoContainer(deserializationContext.getContainingDeclaration());
|
||||
if (asProtoContainer != null) {
|
||||
MemberDeserializer memberDeserializer2 = MemberDeserializer.this;
|
||||
MessageLite messageLite2 = messageLite;
|
||||
AnnotatedCallableKind annotatedCallableKind2 = annotatedCallableKind;
|
||||
deserializationContext2 = memberDeserializer2.f7137c;
|
||||
list = CollectionsKt.toList(deserializationContext2.getComponents().getAnnotationAndConstantLoader().loadCallableAnnotations(asProtoContainer, messageLite2, annotatedCallableKind2));
|
||||
} else {
|
||||
list = null;
|
||||
}
|
||||
return list == null ? CollectionsKt.emptyList() : list;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final ReceiverParameterDescriptor getDispatchReceiverParameter() {
|
||||
DeclarationDescriptor containingDeclaration = this.f7137c.getContainingDeclaration();
|
||||
ClassDescriptor classDescriptor = containingDeclaration instanceof ClassDescriptor ? (ClassDescriptor) containingDeclaration : null;
|
||||
if (classDescriptor != null) {
|
||||
return classDescriptor.getThisAsReceiverParameter();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final Annotations getPropertyFieldAnnotations(final ProtoBuf.Property property, final boolean z3) {
|
||||
return !Flags.HAS_ANNOTATIONS.get(property.getFlags()).booleanValue() ? Annotations.Companion.getEMPTY() : new NonEmptyDeserializedAnnotations(this.f7137c.getStorageManager(), new Function0<List<? extends AnnotationDescriptor>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getPropertyFieldAnnotations$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends AnnotationDescriptor> invoke() {
|
||||
DeserializationContext deserializationContext;
|
||||
ProtoContainer asProtoContainer;
|
||||
List<? extends AnnotationDescriptor> list;
|
||||
DeserializationContext deserializationContext2;
|
||||
DeserializationContext deserializationContext3;
|
||||
MemberDeserializer memberDeserializer = MemberDeserializer.this;
|
||||
deserializationContext = memberDeserializer.f7137c;
|
||||
asProtoContainer = memberDeserializer.asProtoContainer(deserializationContext.getContainingDeclaration());
|
||||
if (asProtoContainer != null) {
|
||||
boolean z4 = z3;
|
||||
MemberDeserializer memberDeserializer2 = MemberDeserializer.this;
|
||||
ProtoBuf.Property property2 = property;
|
||||
if (z4) {
|
||||
deserializationContext3 = memberDeserializer2.f7137c;
|
||||
list = CollectionsKt.toList(deserializationContext3.getComponents().getAnnotationAndConstantLoader().loadPropertyDelegateFieldAnnotations(asProtoContainer, property2));
|
||||
} else {
|
||||
deserializationContext2 = memberDeserializer2.f7137c;
|
||||
list = CollectionsKt.toList(deserializationContext2.getComponents().getAnnotationAndConstantLoader().loadPropertyBackingFieldAnnotations(asProtoContainer, property2));
|
||||
}
|
||||
} else {
|
||||
list = null;
|
||||
}
|
||||
return list == null ? CollectionsKt.emptyList() : list;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final Annotations getReceiverParameterAnnotations(final MessageLite messageLite, final AnnotatedCallableKind annotatedCallableKind) {
|
||||
return new DeserializedAnnotations(this.f7137c.getStorageManager(), new Function0<List<? extends AnnotationDescriptor>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$getReceiverParameterAnnotations$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends AnnotationDescriptor> invoke() {
|
||||
DeserializationContext deserializationContext;
|
||||
ProtoContainer asProtoContainer;
|
||||
List<AnnotationDescriptor> list;
|
||||
DeserializationContext deserializationContext2;
|
||||
MemberDeserializer memberDeserializer = MemberDeserializer.this;
|
||||
deserializationContext = memberDeserializer.f7137c;
|
||||
asProtoContainer = memberDeserializer.asProtoContainer(deserializationContext.getContainingDeclaration());
|
||||
if (asProtoContainer != null) {
|
||||
MemberDeserializer memberDeserializer2 = MemberDeserializer.this;
|
||||
MessageLite messageLite2 = messageLite;
|
||||
AnnotatedCallableKind annotatedCallableKind2 = annotatedCallableKind;
|
||||
deserializationContext2 = memberDeserializer2.f7137c;
|
||||
list = deserializationContext2.getComponents().getAnnotationAndConstantLoader().loadExtensionReceiverParameterAnnotations(asProtoContainer, messageLite2, annotatedCallableKind2);
|
||||
} else {
|
||||
list = null;
|
||||
}
|
||||
return list == null ? CollectionsKt.emptyList() : list;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private final void initializeWithCoroutinesExperimentalityStatus(DeserializedSimpleFunctionDescriptor deserializedSimpleFunctionDescriptor, ReceiverParameterDescriptor receiverParameterDescriptor, ReceiverParameterDescriptor receiverParameterDescriptor2, List<? extends ReceiverParameterDescriptor> list, List<? extends TypeParameterDescriptor> list2, List<? extends ValueParameterDescriptor> list3, KotlinType kotlinType, Modality modality, DescriptorVisibility descriptorVisibility, Map<? extends CallableDescriptor.UserDataKey<?>, ?> map) {
|
||||
deserializedSimpleFunctionDescriptor.initialize(receiverParameterDescriptor, receiverParameterDescriptor2, list, list2, list3, kotlinType, modality, descriptorVisibility, map);
|
||||
}
|
||||
|
||||
private final int loadOldFlags(int i) {
|
||||
return (i & 63) + ((i >> 8) << 6);
|
||||
}
|
||||
|
||||
private final ReceiverParameterDescriptor toContextReceiver(ProtoBuf.Type type, DeserializationContext deserializationContext, CallableDescriptor callableDescriptor, int i) {
|
||||
return DescriptorFactory.createContextReceiverParameterForCallable(callableDescriptor, deserializationContext.getTypeDeserializer().type(type), null, Annotations.Companion.getEMPTY(), i);
|
||||
}
|
||||
|
||||
private final List<ValueParameterDescriptor> valueParameters(List<ProtoBuf.ValueParameter> list, final MessageLite messageLite, final AnnotatedCallableKind annotatedCallableKind) {
|
||||
int collectionSizeOrDefault;
|
||||
DeclarationDescriptor containingDeclaration = this.f7137c.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.CallableDescriptor");
|
||||
CallableDescriptor callableDescriptor = (CallableDescriptor) containingDeclaration;
|
||||
DeclarationDescriptor containingDeclaration2 = callableDescriptor.getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration2, "getContainingDeclaration(...)");
|
||||
final ProtoContainer asProtoContainer = asProtoContainer(containingDeclaration2);
|
||||
List<ProtoBuf.ValueParameter> list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
final int i = 0;
|
||||
for (Object obj : list2) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
final ProtoBuf.ValueParameter valueParameter = (ProtoBuf.ValueParameter) obj;
|
||||
int flags = valueParameter.hasFlags() ? valueParameter.getFlags() : 0;
|
||||
Annotations empty = (asProtoContainer == null || !a.z(Flags.HAS_ANNOTATIONS, flags, "get(...)")) ? Annotations.Companion.getEMPTY() : new NonEmptyDeserializedAnnotations(this.f7137c.getStorageManager(), new Function0<List<? extends AnnotationDescriptor>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$valueParameters$1$annotations$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends AnnotationDescriptor> invoke() {
|
||||
DeserializationContext deserializationContext;
|
||||
deserializationContext = MemberDeserializer.this.f7137c;
|
||||
return CollectionsKt.toList(deserializationContext.getComponents().getAnnotationAndConstantLoader().loadValueParameterAnnotations(asProtoContainer, messageLite, annotatedCallableKind, i, valueParameter));
|
||||
}
|
||||
});
|
||||
Name name = NameResolverUtilKt.getName(this.f7137c.getNameResolver(), valueParameter.getName());
|
||||
KotlinType type = this.f7137c.getTypeDeserializer().type(ProtoTypeTableUtilKt.type(valueParameter, this.f7137c.getTypeTable()));
|
||||
boolean z3 = a.z(Flags.DECLARES_DEFAULT_VALUE, flags, "get(...)");
|
||||
boolean z4 = a.z(Flags.IS_CROSSINLINE, flags, "get(...)");
|
||||
boolean z5 = a.z(Flags.IS_NOINLINE, flags, "get(...)");
|
||||
ProtoBuf.Type varargElementType = ProtoTypeTableUtilKt.varargElementType(valueParameter, this.f7137c.getTypeTable());
|
||||
KotlinType type2 = varargElementType != null ? this.f7137c.getTypeDeserializer().type(varargElementType) : null;
|
||||
SourceElement NO_SOURCE = SourceElement.NO_SOURCE;
|
||||
Intrinsics.checkNotNullExpressionValue(NO_SOURCE, "NO_SOURCE");
|
||||
CallableDescriptor callableDescriptor2 = callableDescriptor;
|
||||
arrayList.add(new ValueParameterDescriptorImpl(callableDescriptor2, null, i, empty, name, type, z3, z4, z5, type2, NO_SOURCE));
|
||||
callableDescriptor = callableDescriptor2;
|
||||
i = i4;
|
||||
}
|
||||
return CollectionsKt.toList(arrayList);
|
||||
}
|
||||
|
||||
public final ClassConstructorDescriptor loadConstructor(ProtoBuf.Constructor proto, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
DeclarationDescriptor containingDeclaration = this.f7137c.getContainingDeclaration();
|
||||
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
|
||||
ClassDescriptor classDescriptor = (ClassDescriptor) containingDeclaration;
|
||||
int flags = proto.getFlags();
|
||||
AnnotatedCallableKind annotatedCallableKind = AnnotatedCallableKind.FUNCTION;
|
||||
DeserializedClassConstructorDescriptor deserializedClassConstructorDescriptor = new DeserializedClassConstructorDescriptor(classDescriptor, null, getAnnotations(proto, flags, annotatedCallableKind), z3, CallableMemberDescriptor.Kind.DECLARATION, proto, this.f7137c.getNameResolver(), this.f7137c.getTypeTable(), this.f7137c.getVersionRequirementTable(), this.f7137c.getContainerSource(), null, 1024, null);
|
||||
MemberDeserializer memberDeserializer = DeserializationContext.childContext$default(this.f7137c, deserializedClassConstructorDescriptor, CollectionsKt.emptyList(), null, null, null, null, 60, null).getMemberDeserializer();
|
||||
List<ProtoBuf.ValueParameter> valueParameterList = proto.getValueParameterList();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameterList, "getValueParameterList(...)");
|
||||
deserializedClassConstructorDescriptor.initialize(memberDeserializer.valueParameters(valueParameterList, proto, annotatedCallableKind), ProtoEnumFlagsUtilsKt.descriptorVisibility(ProtoEnumFlags.INSTANCE, Flags.VISIBILITY.get(proto.getFlags())));
|
||||
deserializedClassConstructorDescriptor.setReturnType(classDescriptor.getDefaultType());
|
||||
deserializedClassConstructorDescriptor.setExpect(classDescriptor.isExpect());
|
||||
deserializedClassConstructorDescriptor.setHasStableParameterNames(!Flags.IS_CONSTRUCTOR_WITH_NON_STABLE_PARAMETER_NAMES.get(proto.getFlags()).booleanValue());
|
||||
return deserializedClassConstructorDescriptor;
|
||||
}
|
||||
|
||||
public final SimpleFunctionDescriptor loadFunction(ProtoBuf.Function proto) {
|
||||
KotlinType type;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
int flags = proto.hasFlags() ? proto.getFlags() : loadOldFlags(proto.getOldFlags());
|
||||
AnnotatedCallableKind annotatedCallableKind = AnnotatedCallableKind.FUNCTION;
|
||||
Annotations annotations = getAnnotations(proto, flags, annotatedCallableKind);
|
||||
Annotations receiverParameterAnnotations = ProtoTypeTableUtilKt.hasReceiver(proto) ? getReceiverParameterAnnotations(proto, annotatedCallableKind) : Annotations.Companion.getEMPTY();
|
||||
DeserializedSimpleFunctionDescriptor deserializedSimpleFunctionDescriptor = new DeserializedSimpleFunctionDescriptor(this.f7137c.getContainingDeclaration(), null, annotations, NameResolverUtilKt.getName(this.f7137c.getNameResolver(), proto.getName()), ProtoEnumFlagsUtilsKt.memberKind(ProtoEnumFlags.INSTANCE, Flags.MEMBER_KIND.get(flags)), proto, this.f7137c.getNameResolver(), this.f7137c.getTypeTable(), Intrinsics.areEqual(DescriptorUtilsKt.getFqNameSafe(this.f7137c.getContainingDeclaration()).child(NameResolverUtilKt.getName(this.f7137c.getNameResolver(), proto.getName())), SuspendFunctionTypeUtilKt.KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME) ? VersionRequirementTable.Companion.getEMPTY() : this.f7137c.getVersionRequirementTable(), this.f7137c.getContainerSource(), null, 1024, null);
|
||||
DeserializationContext deserializationContext = this.f7137c;
|
||||
List<ProtoBuf.TypeParameter> typeParameterList = proto.getTypeParameterList();
|
||||
Intrinsics.checkNotNullExpressionValue(typeParameterList, "getTypeParameterList(...)");
|
||||
DeserializationContext childContext$default = DeserializationContext.childContext$default(deserializationContext, deserializedSimpleFunctionDescriptor, typeParameterList, null, null, null, null, 60, null);
|
||||
ProtoBuf.Type receiverType = ProtoTypeTableUtilKt.receiverType(proto, this.f7137c.getTypeTable());
|
||||
ReceiverParameterDescriptor createExtensionReceiverParameterForCallable = (receiverType == null || (type = childContext$default.getTypeDeserializer().type(receiverType)) == null) ? null : DescriptorFactory.createExtensionReceiverParameterForCallable(deserializedSimpleFunctionDescriptor, type, receiverParameterAnnotations);
|
||||
ReceiverParameterDescriptor dispatchReceiverParameter = getDispatchReceiverParameter();
|
||||
List<ProtoBuf.Type> contextReceiverTypes = ProtoTypeTableUtilKt.contextReceiverTypes(proto, this.f7137c.getTypeTable());
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i = 0;
|
||||
for (Object obj : contextReceiverTypes) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
ReceiverParameterDescriptor contextReceiver = toContextReceiver((ProtoBuf.Type) obj, childContext$default, deserializedSimpleFunctionDescriptor, i);
|
||||
if (contextReceiver != null) {
|
||||
arrayList.add(contextReceiver);
|
||||
}
|
||||
i = i4;
|
||||
}
|
||||
List<TypeParameterDescriptor> ownTypeParameters = childContext$default.getTypeDeserializer().getOwnTypeParameters();
|
||||
MemberDeserializer memberDeserializer = childContext$default.getMemberDeserializer();
|
||||
List<ProtoBuf.ValueParameter> valueParameterList = proto.getValueParameterList();
|
||||
Intrinsics.checkNotNullExpressionValue(valueParameterList, "getValueParameterList(...)");
|
||||
List<ValueParameterDescriptor> valueParameters = memberDeserializer.valueParameters(valueParameterList, proto, AnnotatedCallableKind.FUNCTION);
|
||||
KotlinType type2 = childContext$default.getTypeDeserializer().type(ProtoTypeTableUtilKt.returnType(proto, this.f7137c.getTypeTable()));
|
||||
ProtoEnumFlags protoEnumFlags = ProtoEnumFlags.INSTANCE;
|
||||
initializeWithCoroutinesExperimentalityStatus(deserializedSimpleFunctionDescriptor, createExtensionReceiverParameterForCallable, dispatchReceiverParameter, arrayList, ownTypeParameters, valueParameters, type2, protoEnumFlags.modality(Flags.MODALITY.get(flags)), ProtoEnumFlagsUtilsKt.descriptorVisibility(protoEnumFlags, Flags.VISIBILITY.get(flags)), MapsKt.emptyMap());
|
||||
Boolean bool = Flags.IS_OPERATOR.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setOperator(bool.booleanValue());
|
||||
Boolean bool2 = Flags.IS_INFIX.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool2, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setInfix(bool2.booleanValue());
|
||||
Boolean bool3 = Flags.IS_EXTERNAL_FUNCTION.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool3, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setExternal(bool3.booleanValue());
|
||||
Boolean bool4 = Flags.IS_INLINE.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool4, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setInline(bool4.booleanValue());
|
||||
Boolean bool5 = Flags.IS_TAILREC.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool5, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setTailrec(bool5.booleanValue());
|
||||
Boolean bool6 = Flags.IS_SUSPEND.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool6, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setSuspend(bool6.booleanValue());
|
||||
Boolean bool7 = Flags.IS_EXPECT_FUNCTION.get(flags);
|
||||
Intrinsics.checkNotNullExpressionValue(bool7, "get(...)");
|
||||
deserializedSimpleFunctionDescriptor.setExpect(bool7.booleanValue());
|
||||
deserializedSimpleFunctionDescriptor.setHasStableParameterNames(!Flags.IS_FUNCTION_WITH_NON_STABLE_PARAMETER_NAMES.get(flags).booleanValue());
|
||||
Pair<CallableDescriptor.UserDataKey<?>, Object> deserializeContractFromFunction = this.f7137c.getComponents().getContractDeserializer().deserializeContractFromFunction(proto, deserializedSimpleFunctionDescriptor, this.f7137c.getTypeTable(), childContext$default.getTypeDeserializer());
|
||||
if (deserializeContractFromFunction != null) {
|
||||
deserializedSimpleFunctionDescriptor.putInUserDataMap(deserializeContractFromFunction.getFirst(), deserializeContractFromFunction.getSecond());
|
||||
}
|
||||
return deserializedSimpleFunctionDescriptor;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final PropertyDescriptor loadProperty(final ProtoBuf.Property proto) {
|
||||
int collectionSizeOrDefault;
|
||||
DeserializationContext deserializationContext;
|
||||
Flags.FlagField<ProtoBuf.Visibility> flagField;
|
||||
Flags.FlagField<ProtoBuf.Modality> flagField2;
|
||||
PropertyGetterDescriptorImpl propertyGetterDescriptorImpl;
|
||||
PropertyGetterDescriptorImpl propertyGetterDescriptorImpl2;
|
||||
PropertySetterDescriptorImpl propertySetterDescriptorImpl;
|
||||
KotlinType type;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
int flags = proto.hasFlags() ? proto.getFlags() : loadOldFlags(proto.getOldFlags());
|
||||
DeclarationDescriptor containingDeclaration = this.f7137c.getContainingDeclaration();
|
||||
Annotations annotations = getAnnotations(proto, flags, AnnotatedCallableKind.PROPERTY);
|
||||
ProtoEnumFlags protoEnumFlags = ProtoEnumFlags.INSTANCE;
|
||||
int i = flags;
|
||||
final DeserializedPropertyDescriptor deserializedPropertyDescriptor = new DeserializedPropertyDescriptor(containingDeclaration, null, annotations, protoEnumFlags.modality(Flags.MODALITY.get(flags)), ProtoEnumFlagsUtilsKt.descriptorVisibility(protoEnumFlags, Flags.VISIBILITY.get(flags)), a.z(Flags.IS_VAR, flags, "get(...)"), NameResolverUtilKt.getName(this.f7137c.getNameResolver(), proto.getName()), ProtoEnumFlagsUtilsKt.memberKind(protoEnumFlags, Flags.MEMBER_KIND.get(flags)), a.z(Flags.IS_LATEINIT, flags, "get(...)"), a.z(Flags.IS_CONST, flags, "get(...)"), a.z(Flags.IS_EXTERNAL_PROPERTY, flags, "get(...)"), a.z(Flags.IS_DELEGATED, flags, "get(...)"), a.z(Flags.IS_EXPECT_PROPERTY, flags, "get(...)"), proto, this.f7137c.getNameResolver(), this.f7137c.getTypeTable(), this.f7137c.getVersionRequirementTable(), this.f7137c.getContainerSource());
|
||||
DeserializationContext deserializationContext2 = this.f7137c;
|
||||
List<ProtoBuf.TypeParameter> typeParameterList = proto.getTypeParameterList();
|
||||
Intrinsics.checkNotNullExpressionValue(typeParameterList, "getTypeParameterList(...)");
|
||||
DeserializationContext childContext$default = DeserializationContext.childContext$default(deserializationContext2, deserializedPropertyDescriptor, typeParameterList, null, null, null, null, 60, null);
|
||||
boolean z3 = a.z(Flags.HAS_GETTER, i, "get(...)");
|
||||
Annotations receiverParameterAnnotations = (z3 && ProtoTypeTableUtilKt.hasReceiver(proto)) ? getReceiverParameterAnnotations(proto, AnnotatedCallableKind.PROPERTY_GETTER) : Annotations.Companion.getEMPTY();
|
||||
KotlinType type2 = childContext$default.getTypeDeserializer().type(ProtoTypeTableUtilKt.returnType(proto, this.f7137c.getTypeTable()));
|
||||
List<TypeParameterDescriptor> ownTypeParameters = childContext$default.getTypeDeserializer().getOwnTypeParameters();
|
||||
ReceiverParameterDescriptor dispatchReceiverParameter = getDispatchReceiverParameter();
|
||||
ProtoBuf.Type receiverType = ProtoTypeTableUtilKt.receiverType(proto, this.f7137c.getTypeTable());
|
||||
ReceiverParameterDescriptor createExtensionReceiverParameterForCallable = (receiverType == null || (type = childContext$default.getTypeDeserializer().type(receiverType)) == null) ? null : DescriptorFactory.createExtensionReceiverParameterForCallable(deserializedPropertyDescriptor, type, receiverParameterAnnotations);
|
||||
List<ProtoBuf.Type> contextReceiverTypes = ProtoTypeTableUtilKt.contextReceiverTypes(proto, this.f7137c.getTypeTable());
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(contextReceiverTypes, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
int i4 = 0;
|
||||
for (Object obj : contextReceiverTypes) {
|
||||
int i5 = i4 + 1;
|
||||
if (i4 < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
arrayList.add(toContextReceiver((ProtoBuf.Type) obj, childContext$default, deserializedPropertyDescriptor, i4));
|
||||
i4 = i5;
|
||||
}
|
||||
deserializedPropertyDescriptor.setType(type2, ownTypeParameters, dispatchReceiverParameter, createExtensionReceiverParameterForCallable, arrayList);
|
||||
boolean z4 = a.z(Flags.HAS_ANNOTATIONS, i, "get(...)");
|
||||
Flags.FlagField<ProtoBuf.Visibility> flagField3 = Flags.VISIBILITY;
|
||||
ProtoBuf.Visibility visibility = flagField3.get(i);
|
||||
Flags.FlagField<ProtoBuf.Modality> flagField4 = Flags.MODALITY;
|
||||
int accessorFlags = Flags.getAccessorFlags(z4, visibility, flagField4.get(i), false, false, false);
|
||||
if (z3) {
|
||||
int getterFlags = proto.hasGetterFlags() ? proto.getGetterFlags() : accessorFlags;
|
||||
boolean z5 = a.z(Flags.IS_NOT_DEFAULT, getterFlags, "get(...)");
|
||||
boolean z6 = a.z(Flags.IS_EXTERNAL_ACCESSOR, getterFlags, "get(...)");
|
||||
boolean z7 = a.z(Flags.IS_INLINE_ACCESSOR, getterFlags, "get(...)");
|
||||
Annotations annotations2 = getAnnotations(proto, getterFlags, AnnotatedCallableKind.PROPERTY_GETTER);
|
||||
if (z5) {
|
||||
ProtoEnumFlags protoEnumFlags2 = ProtoEnumFlags.INSTANCE;
|
||||
flagField = flagField3;
|
||||
deserializationContext = childContext$default;
|
||||
flagField2 = flagField4;
|
||||
propertyGetterDescriptorImpl = new PropertyGetterDescriptorImpl(deserializedPropertyDescriptor, annotations2, protoEnumFlags2.modality(flagField4.get(getterFlags)), ProtoEnumFlagsUtilsKt.descriptorVisibility(protoEnumFlags2, flagField3.get(getterFlags)), !z5, z6, z7, deserializedPropertyDescriptor.getKind(), null, SourceElement.NO_SOURCE);
|
||||
} else {
|
||||
deserializationContext = childContext$default;
|
||||
flagField = flagField3;
|
||||
flagField2 = flagField4;
|
||||
propertyGetterDescriptorImpl = DescriptorFactory.createDefaultGetter(deserializedPropertyDescriptor, annotations2);
|
||||
Intrinsics.checkNotNull(propertyGetterDescriptorImpl);
|
||||
}
|
||||
propertyGetterDescriptorImpl.initialize(deserializedPropertyDescriptor.getReturnType());
|
||||
} else {
|
||||
deserializationContext = childContext$default;
|
||||
flagField = flagField3;
|
||||
flagField2 = flagField4;
|
||||
propertyGetterDescriptorImpl = null;
|
||||
}
|
||||
if (a.z(Flags.HAS_SETTER, i, "get(...)")) {
|
||||
if (proto.hasSetterFlags()) {
|
||||
accessorFlags = proto.getSetterFlags();
|
||||
}
|
||||
int i6 = accessorFlags;
|
||||
boolean z8 = a.z(Flags.IS_NOT_DEFAULT, i6, "get(...)");
|
||||
boolean z9 = a.z(Flags.IS_EXTERNAL_ACCESSOR, i6, "get(...)");
|
||||
boolean z10 = a.z(Flags.IS_INLINE_ACCESSOR, i6, "get(...)");
|
||||
AnnotatedCallableKind annotatedCallableKind = AnnotatedCallableKind.PROPERTY_SETTER;
|
||||
Annotations annotations3 = getAnnotations(proto, i6, annotatedCallableKind);
|
||||
if (z8) {
|
||||
ProtoEnumFlags protoEnumFlags3 = ProtoEnumFlags.INSTANCE;
|
||||
propertyGetterDescriptorImpl2 = propertyGetterDescriptorImpl;
|
||||
PropertySetterDescriptorImpl propertySetterDescriptorImpl2 = new PropertySetterDescriptorImpl(deserializedPropertyDescriptor, annotations3, protoEnumFlags3.modality(flagField2.get(i6)), ProtoEnumFlagsUtilsKt.descriptorVisibility(protoEnumFlags3, flagField.get(i6)), !z8, z9, z10, deserializedPropertyDescriptor.getKind(), null, SourceElement.NO_SOURCE);
|
||||
propertySetterDescriptorImpl = propertySetterDescriptorImpl2;
|
||||
propertySetterDescriptorImpl.initialize((ValueParameterDescriptor) CollectionsKt.single((List) DeserializationContext.childContext$default(deserializationContext, propertySetterDescriptorImpl2, CollectionsKt.emptyList(), null, null, null, null, 60, null).getMemberDeserializer().valueParameters(CollectionsKt.listOf(proto.getSetterValueParameter()), proto, annotatedCallableKind)));
|
||||
} else {
|
||||
propertyGetterDescriptorImpl2 = propertyGetterDescriptorImpl;
|
||||
PropertySetterDescriptorImpl createDefaultSetter = DescriptorFactory.createDefaultSetter(deserializedPropertyDescriptor, annotations3, Annotations.Companion.getEMPTY());
|
||||
Intrinsics.checkNotNull(createDefaultSetter);
|
||||
propertySetterDescriptorImpl = createDefaultSetter;
|
||||
}
|
||||
} else {
|
||||
propertyGetterDescriptorImpl2 = propertyGetterDescriptorImpl;
|
||||
propertySetterDescriptorImpl = null;
|
||||
}
|
||||
if (a.z(Flags.HAS_CONSTANT, i, "get(...)")) {
|
||||
deserializedPropertyDescriptor.setCompileTimeInitializerFactory(new Function0<NullableLazyValue<? extends ConstantValue<?>>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$loadProperty$4
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final NullableLazyValue<? extends ConstantValue<?>> invoke() {
|
||||
DeserializationContext deserializationContext3;
|
||||
deserializationContext3 = MemberDeserializer.this.f7137c;
|
||||
StorageManager storageManager = deserializationContext3.getStorageManager();
|
||||
final MemberDeserializer memberDeserializer = MemberDeserializer.this;
|
||||
final ProtoBuf.Property property = proto;
|
||||
final DeserializedPropertyDescriptor deserializedPropertyDescriptor2 = deserializedPropertyDescriptor;
|
||||
return storageManager.createNullableLazyValue(new Function0<ConstantValue<?>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$loadProperty$4.1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final ConstantValue<?> invoke() {
|
||||
DeserializationContext deserializationContext4;
|
||||
ProtoContainer asProtoContainer;
|
||||
DeserializationContext deserializationContext5;
|
||||
MemberDeserializer memberDeserializer2 = MemberDeserializer.this;
|
||||
deserializationContext4 = memberDeserializer2.f7137c;
|
||||
asProtoContainer = memberDeserializer2.asProtoContainer(deserializationContext4.getContainingDeclaration());
|
||||
Intrinsics.checkNotNull(asProtoContainer);
|
||||
deserializationContext5 = MemberDeserializer.this.f7137c;
|
||||
AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> annotationAndConstantLoader = deserializationContext5.getComponents().getAnnotationAndConstantLoader();
|
||||
ProtoBuf.Property property2 = property;
|
||||
KotlinType returnType = deserializedPropertyDescriptor2.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
return annotationAndConstantLoader.loadPropertyConstant(asProtoContainer, property2, returnType);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
DeclarationDescriptor containingDeclaration2 = this.f7137c.getContainingDeclaration();
|
||||
ClassDescriptor classDescriptor = containingDeclaration2 instanceof ClassDescriptor ? (ClassDescriptor) containingDeclaration2 : null;
|
||||
if ((classDescriptor != null ? classDescriptor.getKind() : null) == ClassKind.ANNOTATION_CLASS) {
|
||||
deserializedPropertyDescriptor.setCompileTimeInitializerFactory(new Function0<NullableLazyValue<? extends ConstantValue<?>>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$loadProperty$5
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final NullableLazyValue<? extends ConstantValue<?>> invoke() {
|
||||
DeserializationContext deserializationContext3;
|
||||
deserializationContext3 = MemberDeserializer.this.f7137c;
|
||||
StorageManager storageManager = deserializationContext3.getStorageManager();
|
||||
final MemberDeserializer memberDeserializer = MemberDeserializer.this;
|
||||
final ProtoBuf.Property property = proto;
|
||||
final DeserializedPropertyDescriptor deserializedPropertyDescriptor2 = deserializedPropertyDescriptor;
|
||||
return storageManager.createNullableLazyValue(new Function0<ConstantValue<?>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer$loadProperty$5.1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final ConstantValue<?> invoke() {
|
||||
DeserializationContext deserializationContext4;
|
||||
ProtoContainer asProtoContainer;
|
||||
DeserializationContext deserializationContext5;
|
||||
MemberDeserializer memberDeserializer2 = MemberDeserializer.this;
|
||||
deserializationContext4 = memberDeserializer2.f7137c;
|
||||
asProtoContainer = memberDeserializer2.asProtoContainer(deserializationContext4.getContainingDeclaration());
|
||||
Intrinsics.checkNotNull(asProtoContainer);
|
||||
deserializationContext5 = MemberDeserializer.this.f7137c;
|
||||
AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> annotationAndConstantLoader = deserializationContext5.getComponents().getAnnotationAndConstantLoader();
|
||||
ProtoBuf.Property property2 = property;
|
||||
KotlinType returnType = deserializedPropertyDescriptor2.getReturnType();
|
||||
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
|
||||
return annotationAndConstantLoader.loadAnnotationDefaultValue(asProtoContainer, property2, returnType);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
deserializedPropertyDescriptor.initialize(propertyGetterDescriptorImpl2, propertySetterDescriptorImpl, new FieldDescriptorImpl(getPropertyFieldAnnotations(proto, false), deserializedPropertyDescriptor), new FieldDescriptorImpl(getPropertyFieldAnnotations(proto, true), deserializedPropertyDescriptor));
|
||||
return deserializedPropertyDescriptor;
|
||||
}
|
||||
|
||||
public final TypeAliasDescriptor loadTypeAlias(ProtoBuf.TypeAlias proto) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Annotations.Companion companion = Annotations.Companion;
|
||||
List<ProtoBuf.Annotation> annotationList = proto.getAnnotationList();
|
||||
Intrinsics.checkNotNullExpressionValue(annotationList, "getAnnotationList(...)");
|
||||
List<ProtoBuf.Annotation> list = annotationList;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (ProtoBuf.Annotation annotation : list) {
|
||||
AnnotationDeserializer annotationDeserializer = this.annotationDeserializer;
|
||||
Intrinsics.checkNotNull(annotation);
|
||||
arrayList.add(annotationDeserializer.deserializeAnnotation(annotation, this.f7137c.getNameResolver()));
|
||||
}
|
||||
DeserializedTypeAliasDescriptor deserializedTypeAliasDescriptor = new DeserializedTypeAliasDescriptor(this.f7137c.getStorageManager(), this.f7137c.getContainingDeclaration(), companion.create(arrayList), NameResolverUtilKt.getName(this.f7137c.getNameResolver(), proto.getName()), ProtoEnumFlagsUtilsKt.descriptorVisibility(ProtoEnumFlags.INSTANCE, Flags.VISIBILITY.get(proto.getFlags())), proto, this.f7137c.getNameResolver(), this.f7137c.getTypeTable(), this.f7137c.getVersionRequirementTable(), this.f7137c.getContainerSource());
|
||||
DeserializationContext deserializationContext = this.f7137c;
|
||||
List<ProtoBuf.TypeParameter> typeParameterList = proto.getTypeParameterList();
|
||||
Intrinsics.checkNotNullExpressionValue(typeParameterList, "getTypeParameterList(...)");
|
||||
DeserializationContext childContext$default = DeserializationContext.childContext$default(deserializationContext, deserializedTypeAliasDescriptor, typeParameterList, null, null, null, null, 60, null);
|
||||
deserializedTypeAliasDescriptor.initialize(childContext$default.getTypeDeserializer().getOwnTypeParameters(), childContext$default.getTypeDeserializer().simpleType(ProtoTypeTableUtilKt.underlyingType(proto, this.f7137c.getTypeTable()), false), childContext$default.getTypeDeserializer().simpleType(ProtoTypeTableUtilKt.expandedType(proto, this.f7137c.getTypeTable()), false));
|
||||
return deserializedTypeAliasDescriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class NameResolverUtilKt {
|
||||
public static final ClassId getClassId(NameResolver nameResolver, int i) {
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "<this>");
|
||||
ClassId fromString = ClassId.fromString(nameResolver.getQualifiedClassName(i), nameResolver.isLocalClassName(i));
|
||||
Intrinsics.checkNotNullExpressionValue(fromString, "fromString(...)");
|
||||
return fromString;
|
||||
}
|
||||
|
||||
public static final Name getName(NameResolver nameResolver, int i) {
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "<this>");
|
||||
Name guessByFirstCharacter = Name.guessByFirstCharacter(nameResolver.getString(i));
|
||||
Intrinsics.checkNotNullExpressionValue(guessByFirstCharacter, "guessByFirstCharacter(...)");
|
||||
return guessByFirstCharacter;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.RangesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nProtoBasedClassDataFinder.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ProtoBasedClassDataFinder.kt\norg/jetbrains/kotlin/serialization/deserialization/ProtoBasedClassDataFinder\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,43:1\n1194#2,2:44\n1222#2,4:46\n*S KotlinDebug\n*F\n+ 1 ProtoBasedClassDataFinder.kt\norg/jetbrains/kotlin/serialization/deserialization/ProtoBasedClassDataFinder\n*L\n32#1:44,2\n32#1:46,4\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ProtoBasedClassDataFinder implements ClassDataFinder {
|
||||
private final Map<ClassId, ProtoBuf.Class> classIdToProto;
|
||||
private final Function1<ClassId, SourceElement> classSource;
|
||||
private final BinaryVersion metadataVersion;
|
||||
private final NameResolver nameResolver;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public ProtoBasedClassDataFinder(ProtoBuf.PackageFragment proto, NameResolver nameResolver, BinaryVersion metadataVersion, Function1<? super ClassId, ? extends SourceElement> classSource) {
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
|
||||
Intrinsics.checkNotNullParameter(classSource, "classSource");
|
||||
this.nameResolver = nameResolver;
|
||||
this.metadataVersion = metadataVersion;
|
||||
this.classSource = classSource;
|
||||
List<ProtoBuf.Class> class_List = proto.getClass_List();
|
||||
Intrinsics.checkNotNullExpressionValue(class_List, "getClass_List(...)");
|
||||
List<ProtoBuf.Class> list = class_List;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
|
||||
for (Object obj : list) {
|
||||
linkedHashMap.put(NameResolverUtilKt.getClassId(this.nameResolver, ((ProtoBuf.Class) obj).getFqName()), obj);
|
||||
}
|
||||
this.classIdToProto = linkedHashMap;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ClassDataFinder
|
||||
public ClassData findClassData(ClassId classId) {
|
||||
Intrinsics.checkNotNullParameter(classId, "classId");
|
||||
ProtoBuf.Class r02 = this.classIdToProto.get(classId);
|
||||
if (r02 == null) {
|
||||
return null;
|
||||
}
|
||||
return new ClassData(this.nameResolver, r02, this.metadataVersion, this.classSource.invoke(classId));
|
||||
}
|
||||
|
||||
public final Collection<ClassId> getAllClassIds() {
|
||||
return this.classIdToProto.keySet();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.Flags;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class ProtoContainer {
|
||||
private final NameResolver nameResolver;
|
||||
private final SourceElement source;
|
||||
private final TypeTable typeTable;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Class extends ProtoContainer {
|
||||
private final ClassId classId;
|
||||
private final ProtoBuf.Class classProto;
|
||||
private final boolean isInner;
|
||||
private final ProtoBuf.Class.Kind kind;
|
||||
private final Class outerClass;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Class(ProtoBuf.Class classProto, NameResolver nameResolver, TypeTable typeTable, SourceElement sourceElement, Class r6) {
|
||||
super(nameResolver, typeTable, sourceElement, null);
|
||||
Intrinsics.checkNotNullParameter(classProto, "classProto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
this.classProto = classProto;
|
||||
this.outerClass = r6;
|
||||
this.classId = NameResolverUtilKt.getClassId(nameResolver, classProto.getFqName());
|
||||
ProtoBuf.Class.Kind kind = Flags.CLASS_KIND.get(classProto.getFlags());
|
||||
this.kind = kind == null ? ProtoBuf.Class.Kind.CLASS : kind;
|
||||
Boolean bool = Flags.IS_INNER.get(classProto.getFlags());
|
||||
Intrinsics.checkNotNullExpressionValue(bool, "get(...)");
|
||||
this.isInner = bool.booleanValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoContainer
|
||||
public FqName debugFqName() {
|
||||
FqName asSingleFqName = this.classId.asSingleFqName();
|
||||
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
|
||||
return asSingleFqName;
|
||||
}
|
||||
|
||||
public final ClassId getClassId() {
|
||||
return this.classId;
|
||||
}
|
||||
|
||||
public final ProtoBuf.Class getClassProto() {
|
||||
return this.classProto;
|
||||
}
|
||||
|
||||
public final ProtoBuf.Class.Kind getKind() {
|
||||
return this.kind;
|
||||
}
|
||||
|
||||
public final Class getOuterClass() {
|
||||
return this.outerClass;
|
||||
}
|
||||
|
||||
public final boolean isInner() {
|
||||
return this.isInner;
|
||||
}
|
||||
}
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Package extends ProtoContainer {
|
||||
private final FqName fqName;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Package(FqName fqName, NameResolver nameResolver, TypeTable typeTable, SourceElement sourceElement) {
|
||||
super(nameResolver, typeTable, sourceElement, null);
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
this.fqName = fqName;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoContainer
|
||||
public FqName debugFqName() {
|
||||
return this.fqName;
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ ProtoContainer(NameResolver nameResolver, TypeTable typeTable, SourceElement sourceElement, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(nameResolver, typeTable, sourceElement);
|
||||
}
|
||||
|
||||
public abstract FqName debugFqName();
|
||||
|
||||
public final NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
public final SourceElement getSource() {
|
||||
return this.source;
|
||||
}
|
||||
|
||||
public final TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return getClass().getSimpleName() + ": " + debugFqName();
|
||||
}
|
||||
|
||||
private ProtoContainer(NameResolver nameResolver, TypeTable typeTable, SourceElement sourceElement) {
|
||||
this.nameResolver = nameResolver;
|
||||
this.typeTable = typeTable;
|
||||
this.source = sourceElement;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ProtoEnumFlags {
|
||||
public static final ProtoEnumFlags INSTANCE = new ProtoEnumFlags();
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$2;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$3;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$4;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$5;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$6;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$7;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[ProtoBuf.Modality.values().length];
|
||||
try {
|
||||
iArr[ProtoBuf.Modality.FINAL.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Modality.OPEN.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Modality.ABSTRACT.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.Modality.SEALED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
int[] iArr2 = new int[Modality.values().length];
|
||||
try {
|
||||
iArr2[Modality.FINAL.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr2[Modality.OPEN.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
try {
|
||||
iArr2[Modality.ABSTRACT.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused7) {
|
||||
}
|
||||
try {
|
||||
iArr2[Modality.SEALED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused8) {
|
||||
}
|
||||
$EnumSwitchMapping$1 = iArr2;
|
||||
int[] iArr3 = new int[ProtoBuf.Visibility.values().length];
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.INTERNAL.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused9) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PRIVATE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused10) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PRIVATE_TO_THIS.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused11) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PROTECTED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused12) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PUBLIC.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused13) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.LOCAL.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused14) {
|
||||
}
|
||||
$EnumSwitchMapping$2 = iArr3;
|
||||
int[] iArr4 = new int[ProtoBuf.Class.Kind.values().length];
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.CLASS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused15) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.INTERFACE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused16) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.ENUM_CLASS.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused17) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.ENUM_ENTRY.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused18) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.ANNOTATION_CLASS.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused19) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.OBJECT.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused20) {
|
||||
}
|
||||
try {
|
||||
iArr4[ProtoBuf.Class.Kind.COMPANION_OBJECT.ordinal()] = 7;
|
||||
} catch (NoSuchFieldError unused21) {
|
||||
}
|
||||
$EnumSwitchMapping$3 = iArr4;
|
||||
int[] iArr5 = new int[ClassKind.values().length];
|
||||
try {
|
||||
iArr5[ClassKind.CLASS.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused22) {
|
||||
}
|
||||
try {
|
||||
iArr5[ClassKind.INTERFACE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused23) {
|
||||
}
|
||||
try {
|
||||
iArr5[ClassKind.ENUM_CLASS.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused24) {
|
||||
}
|
||||
try {
|
||||
iArr5[ClassKind.ENUM_ENTRY.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused25) {
|
||||
}
|
||||
try {
|
||||
iArr5[ClassKind.ANNOTATION_CLASS.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused26) {
|
||||
}
|
||||
try {
|
||||
iArr5[ClassKind.OBJECT.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused27) {
|
||||
}
|
||||
$EnumSwitchMapping$4 = iArr5;
|
||||
int[] iArr6 = new int[ProtoBuf.TypeParameter.Variance.values().length];
|
||||
try {
|
||||
iArr6[ProtoBuf.TypeParameter.Variance.IN.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused28) {
|
||||
}
|
||||
try {
|
||||
iArr6[ProtoBuf.TypeParameter.Variance.OUT.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused29) {
|
||||
}
|
||||
try {
|
||||
iArr6[ProtoBuf.TypeParameter.Variance.INV.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused30) {
|
||||
}
|
||||
$EnumSwitchMapping$5 = iArr6;
|
||||
int[] iArr7 = new int[ProtoBuf.Type.Argument.Projection.values().length];
|
||||
try {
|
||||
iArr7[ProtoBuf.Type.Argument.Projection.IN.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused31) {
|
||||
}
|
||||
try {
|
||||
iArr7[ProtoBuf.Type.Argument.Projection.OUT.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused32) {
|
||||
}
|
||||
try {
|
||||
iArr7[ProtoBuf.Type.Argument.Projection.INV.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused33) {
|
||||
}
|
||||
try {
|
||||
iArr7[ProtoBuf.Type.Argument.Projection.STAR.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused34) {
|
||||
}
|
||||
$EnumSwitchMapping$6 = iArr7;
|
||||
int[] iArr8 = new int[Variance.values().length];
|
||||
try {
|
||||
iArr8[Variance.IN_VARIANCE.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused35) {
|
||||
}
|
||||
try {
|
||||
iArr8[Variance.OUT_VARIANCE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused36) {
|
||||
}
|
||||
try {
|
||||
iArr8[Variance.INVARIANT.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused37) {
|
||||
}
|
||||
$EnumSwitchMapping$7 = iArr8;
|
||||
}
|
||||
}
|
||||
|
||||
private ProtoEnumFlags() {
|
||||
}
|
||||
|
||||
public final ClassKind classKind(ProtoBuf.Class.Kind kind) {
|
||||
switch (kind == null ? -1 : WhenMappings.$EnumSwitchMapping$3[kind.ordinal()]) {
|
||||
case 1:
|
||||
return ClassKind.CLASS;
|
||||
case 2:
|
||||
return ClassKind.INTERFACE;
|
||||
case 3:
|
||||
return ClassKind.ENUM_CLASS;
|
||||
case 4:
|
||||
return ClassKind.ENUM_ENTRY;
|
||||
case 5:
|
||||
return ClassKind.ANNOTATION_CLASS;
|
||||
case 6:
|
||||
case 7:
|
||||
return ClassKind.OBJECT;
|
||||
default:
|
||||
return ClassKind.CLASS;
|
||||
}
|
||||
}
|
||||
|
||||
public final Modality modality(ProtoBuf.Modality modality) {
|
||||
int i = modality == null ? -1 : WhenMappings.$EnumSwitchMapping$0[modality.ordinal()];
|
||||
return i != 1 ? i != 2 ? i != 3 ? i != 4 ? Modality.FINAL : Modality.SEALED : Modality.ABSTRACT : Modality.OPEN : Modality.FINAL;
|
||||
}
|
||||
|
||||
public final Variance variance(ProtoBuf.TypeParameter.Variance variance) {
|
||||
Intrinsics.checkNotNullParameter(variance, "variance");
|
||||
int i = WhenMappings.$EnumSwitchMapping$5[variance.ordinal()];
|
||||
if (i == 1) {
|
||||
return Variance.IN_VARIANCE;
|
||||
}
|
||||
if (i == 2) {
|
||||
return Variance.OUT_VARIANCE;
|
||||
}
|
||||
if (i == 3) {
|
||||
return Variance.INVARIANT;
|
||||
}
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
|
||||
public final Variance variance(ProtoBuf.Type.Argument.Projection projection) {
|
||||
Intrinsics.checkNotNullParameter(projection, "projection");
|
||||
int i = WhenMappings.$EnumSwitchMapping$6[projection.ordinal()];
|
||||
if (i == 1) {
|
||||
return Variance.IN_VARIANCE;
|
||||
}
|
||||
if (i == 2) {
|
||||
return Variance.OUT_VARIANCE;
|
||||
}
|
||||
if (i == 3) {
|
||||
return Variance.INVARIANT;
|
||||
}
|
||||
if (i != 4) {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
throw new IllegalArgumentException("Only IN, OUT and INV are supported. Actual argument: " + projection);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ProtoEnumFlagsUtilsKt {
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$2;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[ProtoBuf.MemberKind.values().length];
|
||||
try {
|
||||
iArr[ProtoBuf.MemberKind.DECLARATION.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.MemberKind.FAKE_OVERRIDE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.MemberKind.DELEGATION.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
try {
|
||||
iArr[ProtoBuf.MemberKind.SYNTHESIZED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused4) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
int[] iArr2 = new int[CallableMemberDescriptor.Kind.values().length];
|
||||
try {
|
||||
iArr2[CallableMemberDescriptor.Kind.DECLARATION.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused5) {
|
||||
}
|
||||
try {
|
||||
iArr2[CallableMemberDescriptor.Kind.FAKE_OVERRIDE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused6) {
|
||||
}
|
||||
try {
|
||||
iArr2[CallableMemberDescriptor.Kind.DELEGATION.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused7) {
|
||||
}
|
||||
try {
|
||||
iArr2[CallableMemberDescriptor.Kind.SYNTHESIZED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused8) {
|
||||
}
|
||||
$EnumSwitchMapping$1 = iArr2;
|
||||
int[] iArr3 = new int[ProtoBuf.Visibility.values().length];
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.INTERNAL.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused9) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PRIVATE.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused10) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PRIVATE_TO_THIS.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused11) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PROTECTED.ordinal()] = 4;
|
||||
} catch (NoSuchFieldError unused12) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.PUBLIC.ordinal()] = 5;
|
||||
} catch (NoSuchFieldError unused13) {
|
||||
}
|
||||
try {
|
||||
iArr3[ProtoBuf.Visibility.LOCAL.ordinal()] = 6;
|
||||
} catch (NoSuchFieldError unused14) {
|
||||
}
|
||||
$EnumSwitchMapping$2 = iArr3;
|
||||
}
|
||||
}
|
||||
|
||||
public static final DescriptorVisibility descriptorVisibility(ProtoEnumFlags protoEnumFlags, ProtoBuf.Visibility visibility) {
|
||||
Intrinsics.checkNotNullParameter(protoEnumFlags, "<this>");
|
||||
switch (visibility == null ? -1 : WhenMappings.$EnumSwitchMapping$2[visibility.ordinal()]) {
|
||||
case 1:
|
||||
DescriptorVisibility INTERNAL = DescriptorVisibilities.INTERNAL;
|
||||
Intrinsics.checkNotNullExpressionValue(INTERNAL, "INTERNAL");
|
||||
return INTERNAL;
|
||||
case 2:
|
||||
DescriptorVisibility PRIVATE = DescriptorVisibilities.PRIVATE;
|
||||
Intrinsics.checkNotNullExpressionValue(PRIVATE, "PRIVATE");
|
||||
return PRIVATE;
|
||||
case 3:
|
||||
DescriptorVisibility PRIVATE_TO_THIS = DescriptorVisibilities.PRIVATE_TO_THIS;
|
||||
Intrinsics.checkNotNullExpressionValue(PRIVATE_TO_THIS, "PRIVATE_TO_THIS");
|
||||
return PRIVATE_TO_THIS;
|
||||
case 4:
|
||||
DescriptorVisibility PROTECTED = DescriptorVisibilities.PROTECTED;
|
||||
Intrinsics.checkNotNullExpressionValue(PROTECTED, "PROTECTED");
|
||||
return PROTECTED;
|
||||
case 5:
|
||||
DescriptorVisibility PUBLIC = DescriptorVisibilities.PUBLIC;
|
||||
Intrinsics.checkNotNullExpressionValue(PUBLIC, "PUBLIC");
|
||||
return PUBLIC;
|
||||
case 6:
|
||||
DescriptorVisibility LOCAL = DescriptorVisibilities.LOCAL;
|
||||
Intrinsics.checkNotNullExpressionValue(LOCAL, "LOCAL");
|
||||
return LOCAL;
|
||||
default:
|
||||
DescriptorVisibility PRIVATE2 = DescriptorVisibilities.PRIVATE;
|
||||
Intrinsics.checkNotNullExpressionValue(PRIVATE2, "PRIVATE");
|
||||
return PRIVATE2;
|
||||
}
|
||||
}
|
||||
|
||||
public static final CallableMemberDescriptor.Kind memberKind(ProtoEnumFlags protoEnumFlags, ProtoBuf.MemberKind memberKind) {
|
||||
Intrinsics.checkNotNullParameter(protoEnumFlags, "<this>");
|
||||
int i = memberKind == null ? -1 : WhenMappings.$EnumSwitchMapping$0[memberKind.ordinal()];
|
||||
return i != 1 ? i != 2 ? i != 3 ? i != 4 ? CallableMemberDescriptor.Kind.DECLARATION : CallableMemberDescriptor.Kind.SYNTHESIZED : CallableMemberDescriptor.Kind.DELEGATION : CallableMemberDescriptor.Kind.FAKE_OVERRIDE : CallableMemberDescriptor.Kind.DECLARATION;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.name.CallableId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class SuspendFunctionTypeUtilKt {
|
||||
|
||||
@JvmField
|
||||
public static final FqName KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME = new FqName("kotlin.suspend");
|
||||
|
||||
@JvmField
|
||||
public static final CallableId KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME_CALLABLE_ID;
|
||||
|
||||
static {
|
||||
FqName fqName = StandardNames.BUILT_INS_PACKAGE_FQ_NAME;
|
||||
Name identifier = Name.identifier("suspend");
|
||||
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
|
||||
KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME_CALLABLE_ID = new CallableId(fqName, identifier);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class TypeDeserializer$typeConstructor$notFoundClass$classNestingLevel$1 extends FunctionReference implements Function1<ClassId, ClassId> {
|
||||
public static final TypeDeserializer$typeConstructor$notFoundClass$classNestingLevel$1 INSTANCE = new TypeDeserializer$typeConstructor$notFoundClass$classNestingLevel$1();
|
||||
|
||||
public TypeDeserializer$typeConstructor$notFoundClass$classNestingLevel$1() {
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "getOuterClassId";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(ClassId.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "getOuterClassId()Lorg/jetbrains/kotlin/name/ClassId;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final ClassId invoke(ClassId p02) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
return p02.getOuterClassId();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,495 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.FunctionTypesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.Flags;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedAnnotations;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.DefinitelyNotNullType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SpecialTypesKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.StarProjectionForAbsentTypeParameter;
|
||||
import kotlin.reflect.jvm.internal.impl.types.StarProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributeTranslator;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
|
||||
import kotlin.reflect.jvm.internal.impl.types.error.ErrorTypeKind;
|
||||
import kotlin.reflect.jvm.internal.impl.types.error.ErrorUtils;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nTypeDeserializer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TypeDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/TypeDeserializer\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,300:1\n1549#2:301\n1620#2,3:302\n1559#2:305\n1590#2,4:306\n1549#2:311\n1620#2,3:312\n1#3:310\n*S KotlinDebug\n*F\n+ 1 TypeDeserializer.kt\norg/jetbrains/kotlin/serialization/deserialization/TypeDeserializer\n*L\n76#1:301\n76#1:302,3\n105#1:305\n105#1:306,4\n246#1:311\n246#1:312,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TypeDeserializer {
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
private final DeserializationContext f7138c;
|
||||
private final Function1<Integer, ClassifierDescriptor> classifierDescriptors;
|
||||
private final String containerPresentableName;
|
||||
private final String debugName;
|
||||
private final TypeDeserializer parent;
|
||||
private final Function1<Integer, ClassifierDescriptor> typeAliasDescriptors;
|
||||
private final Map<Integer, TypeParameterDescriptor> typeParameterDescriptors;
|
||||
|
||||
public TypeDeserializer(DeserializationContext c4, TypeDeserializer typeDeserializer, List<ProtoBuf.TypeParameter> typeParameterProtos, String debugName, String containerPresentableName) {
|
||||
Map<Integer, TypeParameterDescriptor> linkedHashMap;
|
||||
Intrinsics.checkNotNullParameter(c4, "c");
|
||||
Intrinsics.checkNotNullParameter(typeParameterProtos, "typeParameterProtos");
|
||||
Intrinsics.checkNotNullParameter(debugName, "debugName");
|
||||
Intrinsics.checkNotNullParameter(containerPresentableName, "containerPresentableName");
|
||||
this.f7138c = c4;
|
||||
this.parent = typeDeserializer;
|
||||
this.debugName = debugName;
|
||||
this.containerPresentableName = containerPresentableName;
|
||||
this.classifierDescriptors = c4.getStorageManager().createMemoizedFunctionWithNullableValues(new Function1<Integer, ClassifierDescriptor>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$classifierDescriptors$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ ClassifierDescriptor invoke(Integer num) {
|
||||
return invoke(num.intValue());
|
||||
}
|
||||
|
||||
public final ClassifierDescriptor invoke(int i) {
|
||||
ClassifierDescriptor computeClassifierDescriptor;
|
||||
computeClassifierDescriptor = TypeDeserializer.this.computeClassifierDescriptor(i);
|
||||
return computeClassifierDescriptor;
|
||||
}
|
||||
});
|
||||
this.typeAliasDescriptors = c4.getStorageManager().createMemoizedFunctionWithNullableValues(new Function1<Integer, ClassifierDescriptor>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$typeAliasDescriptors$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ ClassifierDescriptor invoke(Integer num) {
|
||||
return invoke(num.intValue());
|
||||
}
|
||||
|
||||
public final ClassifierDescriptor invoke(int i) {
|
||||
ClassifierDescriptor computeTypeAliasDescriptor;
|
||||
computeTypeAliasDescriptor = TypeDeserializer.this.computeTypeAliasDescriptor(i);
|
||||
return computeTypeAliasDescriptor;
|
||||
}
|
||||
});
|
||||
if (typeParameterProtos.isEmpty()) {
|
||||
linkedHashMap = MapsKt.emptyMap();
|
||||
} else {
|
||||
linkedHashMap = new LinkedHashMap<>();
|
||||
int i = 0;
|
||||
for (ProtoBuf.TypeParameter typeParameter : typeParameterProtos) {
|
||||
linkedHashMap.put(Integer.valueOf(typeParameter.getId()), new DeserializedTypeParameterDescriptor(this.f7138c, typeParameter, i));
|
||||
i++;
|
||||
}
|
||||
}
|
||||
this.typeParameterDescriptors = linkedHashMap;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final ClassifierDescriptor computeClassifierDescriptor(int i) {
|
||||
ClassId classId = NameResolverUtilKt.getClassId(this.f7138c.getNameResolver(), i);
|
||||
return classId.isLocal() ? this.f7138c.getComponents().deserializeClass(classId) : FindClassInModuleKt.findClassifierAcrossModuleDependencies(this.f7138c.getComponents().getModuleDescriptor(), classId);
|
||||
}
|
||||
|
||||
private final SimpleType computeLocalClassifierReplacementType(int i) {
|
||||
if (NameResolverUtilKt.getClassId(this.f7138c.getNameResolver(), i).isLocal()) {
|
||||
return this.f7138c.getComponents().getLocalClassifierTypeSettings().getReplacementTypeForLocalClassifiers();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final ClassifierDescriptor computeTypeAliasDescriptor(int i) {
|
||||
ClassId classId = NameResolverUtilKt.getClassId(this.f7138c.getNameResolver(), i);
|
||||
if (classId.isLocal()) {
|
||||
return null;
|
||||
}
|
||||
return FindClassInModuleKt.findTypeAliasAcrossModuleDependencies(this.f7138c.getComponents().getModuleDescriptor(), classId);
|
||||
}
|
||||
|
||||
private final SimpleType createSimpleSuspendFunctionType(KotlinType kotlinType, KotlinType kotlinType2) {
|
||||
List dropLast;
|
||||
int collectionSizeOrDefault;
|
||||
KotlinBuiltIns builtIns = TypeUtilsKt.getBuiltIns(kotlinType);
|
||||
Annotations annotations = kotlinType.getAnnotations();
|
||||
KotlinType receiverTypeFromFunctionType = FunctionTypesKt.getReceiverTypeFromFunctionType(kotlinType);
|
||||
List<KotlinType> contextReceiverTypesFromFunctionType = FunctionTypesKt.getContextReceiverTypesFromFunctionType(kotlinType);
|
||||
dropLast = CollectionsKt___CollectionsKt.dropLast(FunctionTypesKt.getValueParameterTypesFromFunctionType(kotlinType), 1);
|
||||
List list = dropLast;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((TypeProjection) it.next()).getType());
|
||||
}
|
||||
return FunctionTypesKt.createFunctionType(builtIns, annotations, receiverTypeFromFunctionType, contextReceiverTypesFromFunctionType, arrayList, null, kotlinType2, true).makeNullableAsSpecified(kotlinType.isMarkedNullable());
|
||||
}
|
||||
|
||||
private final SimpleType createSuspendFunctionType(TypeAttributes typeAttributes, TypeConstructor typeConstructor, List<? extends TypeProjection> list, boolean z3) {
|
||||
List<? extends TypeProjection> list2;
|
||||
SimpleType createSuspendFunctionTypeForBasicCase;
|
||||
int size;
|
||||
int size2 = typeConstructor.getParameters().size() - list.size();
|
||||
if (size2 != 0) {
|
||||
createSuspendFunctionTypeForBasicCase = null;
|
||||
if (size2 == 1 && (size = list.size() - 1) >= 0) {
|
||||
TypeConstructor typeConstructor2 = typeConstructor.getBuiltIns().getSuspendFunction(size).getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor2, "getTypeConstructor(...)");
|
||||
list2 = list;
|
||||
createSuspendFunctionTypeForBasicCase = KotlinTypeFactory.simpleType$default(typeAttributes, typeConstructor2, list2, z3, (KotlinTypeRefiner) null, 16, (Object) null);
|
||||
} else {
|
||||
list2 = list;
|
||||
}
|
||||
} else {
|
||||
list2 = list;
|
||||
createSuspendFunctionTypeForBasicCase = createSuspendFunctionTypeForBasicCase(typeAttributes, typeConstructor, list2, z3);
|
||||
}
|
||||
return createSuspendFunctionTypeForBasicCase == null ? ErrorUtils.INSTANCE.createErrorTypeWithArguments(ErrorTypeKind.INCONSISTENT_SUSPEND_FUNCTION, list2, typeConstructor, new String[0]) : createSuspendFunctionTypeForBasicCase;
|
||||
}
|
||||
|
||||
private final SimpleType createSuspendFunctionTypeForBasicCase(TypeAttributes typeAttributes, TypeConstructor typeConstructor, List<? extends TypeProjection> list, boolean z3) {
|
||||
SimpleType simpleType$default = KotlinTypeFactory.simpleType$default(typeAttributes, typeConstructor, list, z3, (KotlinTypeRefiner) null, 16, (Object) null);
|
||||
if (FunctionTypesKt.isFunctionType(simpleType$default)) {
|
||||
return transformRuntimeFunctionTypeToSuspendFunction(simpleType$default);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private final TypeParameterDescriptor loadTypeParameter(int i) {
|
||||
TypeParameterDescriptor typeParameterDescriptor = this.typeParameterDescriptors.get(Integer.valueOf(i));
|
||||
if (typeParameterDescriptor != null) {
|
||||
return typeParameterDescriptor;
|
||||
}
|
||||
TypeDeserializer typeDeserializer = this.parent;
|
||||
if (typeDeserializer != null) {
|
||||
return typeDeserializer.loadTypeParameter(i);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final List<ProtoBuf.Type.Argument> simpleType$collectAllArguments(ProtoBuf.Type type, TypeDeserializer typeDeserializer) {
|
||||
List<ProtoBuf.Type.Argument> argumentList = type.getArgumentList();
|
||||
Intrinsics.checkNotNullExpressionValue(argumentList, "getArgumentList(...)");
|
||||
List<ProtoBuf.Type.Argument> list = argumentList;
|
||||
ProtoBuf.Type outerType = ProtoTypeTableUtilKt.outerType(type, typeDeserializer.f7138c.getTypeTable());
|
||||
List<ProtoBuf.Type.Argument> simpleType$collectAllArguments = outerType != null ? simpleType$collectAllArguments(outerType, typeDeserializer) : null;
|
||||
if (simpleType$collectAllArguments == null) {
|
||||
simpleType$collectAllArguments = CollectionsKt.emptyList();
|
||||
}
|
||||
return CollectionsKt.plus((Collection) list, (Iterable) simpleType$collectAllArguments);
|
||||
}
|
||||
|
||||
public static /* synthetic */ SimpleType simpleType$default(TypeDeserializer typeDeserializer, ProtoBuf.Type type, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z3 = true;
|
||||
}
|
||||
return typeDeserializer.simpleType(type, z3);
|
||||
}
|
||||
|
||||
private final TypeAttributes toAttributes(List<? extends TypeAttributeTranslator> list, Annotations annotations, TypeConstructor typeConstructor, DeclarationDescriptor declarationDescriptor) {
|
||||
int collectionSizeOrDefault;
|
||||
List<? extends TypeAttributeTranslator> list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(((TypeAttributeTranslator) it.next()).toAttributes(annotations, typeConstructor, declarationDescriptor));
|
||||
}
|
||||
return TypeAttributes.Companion.create(CollectionsKt.flatten(arrayList));
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:13:0x003f, code lost:
|
||||
|
||||
if (kotlin.jvm.internal.Intrinsics.areEqual(r2, r3) == false) goto L30;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private final kotlin.reflect.jvm.internal.impl.types.SimpleType transformRuntimeFunctionTypeToSuspendFunction(kotlin.reflect.jvm.internal.impl.types.KotlinType r6) {
|
||||
/*
|
||||
r5 = this;
|
||||
java.util.List r0 = kotlin.reflect.jvm.internal.impl.builtins.FunctionTypesKt.getValueParameterTypesFromFunctionType(r6)
|
||||
java.lang.Object r0 = kotlin.collections.CollectionsKt.lastOrNull(r0)
|
||||
kotlin.reflect.jvm.internal.impl.types.TypeProjection r0 = (kotlin.reflect.jvm.internal.impl.types.TypeProjection) r0
|
||||
r1 = 0
|
||||
if (r0 == 0) goto L7e
|
||||
kotlin.reflect.jvm.internal.impl.types.KotlinType r0 = r0.getType()
|
||||
if (r0 != 0) goto L14
|
||||
goto L7e
|
||||
L14:
|
||||
kotlin.reflect.jvm.internal.impl.types.TypeConstructor r2 = r0.getConstructor()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor r2 = r2.mo1394getDeclarationDescriptor()
|
||||
if (r2 == 0) goto L23
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r2 = kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt.getFqNameSafe(r2)
|
||||
goto L24
|
||||
L23:
|
||||
r2 = r1
|
||||
L24:
|
||||
java.util.List r3 = r0.getArguments()
|
||||
int r3 = r3.size()
|
||||
r4 = 1
|
||||
if (r3 != r4) goto L7b
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r3 = kotlin.reflect.jvm.internal.impl.builtins.StandardNames.CONTINUATION_INTERFACE_FQ_NAME
|
||||
boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r2, r3)
|
||||
if (r3 != 0) goto L42
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r3 = kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializerKt.access$getEXPERIMENTAL_CONTINUATION_FQ_NAME$p()
|
||||
boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual(r2, r3)
|
||||
if (r2 != 0) goto L42
|
||||
goto L7b
|
||||
L42:
|
||||
java.util.List r0 = r0.getArguments()
|
||||
java.lang.Object r0 = kotlin.collections.CollectionsKt.single(r0)
|
||||
kotlin.reflect.jvm.internal.impl.types.TypeProjection r0 = (kotlin.reflect.jvm.internal.impl.types.TypeProjection) r0
|
||||
kotlin.reflect.jvm.internal.impl.types.KotlinType r0 = r0.getType()
|
||||
java.lang.String r2 = "getType(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r2)
|
||||
kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext r2 = r5.f7138c
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r2 = r2.getContainingDeclaration()
|
||||
boolean r3 = r2 instanceof kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor
|
||||
if (r3 == 0) goto L62
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor r2 = (kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor) r2
|
||||
goto L63
|
||||
L62:
|
||||
r2 = r1
|
||||
L63:
|
||||
if (r2 == 0) goto L69
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r1 = kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt.fqNameOrNull(r2)
|
||||
L69:
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r2 = kotlin.reflect.jvm.internal.impl.serialization.deserialization.SuspendFunctionTypeUtilKt.KOTLIN_SUSPEND_BUILT_IN_FUNCTION_FQ_NAME
|
||||
boolean r1 = kotlin.jvm.internal.Intrinsics.areEqual(r1, r2)
|
||||
if (r1 == 0) goto L76
|
||||
kotlin.reflect.jvm.internal.impl.types.SimpleType r5 = r5.createSimpleSuspendFunctionType(r6, r0)
|
||||
return r5
|
||||
L76:
|
||||
kotlin.reflect.jvm.internal.impl.types.SimpleType r5 = r5.createSimpleSuspendFunctionType(r6, r0)
|
||||
return r5
|
||||
L7b:
|
||||
kotlin.reflect.jvm.internal.impl.types.SimpleType r6 = (kotlin.reflect.jvm.internal.impl.types.SimpleType) r6
|
||||
return r6
|
||||
L7e:
|
||||
return r1
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer.transformRuntimeFunctionTypeToSuspendFunction(kotlin.reflect.jvm.internal.impl.types.KotlinType):kotlin.reflect.jvm.internal.impl.types.SimpleType");
|
||||
}
|
||||
|
||||
private final TypeProjection typeArgument(TypeParameterDescriptor typeParameterDescriptor, ProtoBuf.Type.Argument argument) {
|
||||
if (argument.getProjection() == ProtoBuf.Type.Argument.Projection.STAR) {
|
||||
return typeParameterDescriptor == null ? new StarProjectionForAbsentTypeParameter(this.f7138c.getComponents().getModuleDescriptor().getBuiltIns()) : new StarProjectionImpl(typeParameterDescriptor);
|
||||
}
|
||||
ProtoEnumFlags protoEnumFlags = ProtoEnumFlags.INSTANCE;
|
||||
ProtoBuf.Type.Argument.Projection projection = argument.getProjection();
|
||||
Intrinsics.checkNotNullExpressionValue(projection, "getProjection(...)");
|
||||
Variance variance = protoEnumFlags.variance(projection);
|
||||
ProtoBuf.Type type = ProtoTypeTableUtilKt.type(argument, this.f7138c.getTypeTable());
|
||||
return type == null ? new TypeProjectionImpl(ErrorUtils.createErrorType(ErrorTypeKind.NO_RECORDED_TYPE, argument.toString())) : new TypeProjectionImpl(variance, type(type));
|
||||
}
|
||||
|
||||
private final TypeConstructor typeConstructor(ProtoBuf.Type type) {
|
||||
ClassifierDescriptor invoke;
|
||||
Object obj;
|
||||
if (type.hasClassName()) {
|
||||
invoke = this.classifierDescriptors.invoke(Integer.valueOf(type.getClassName()));
|
||||
if (invoke == null) {
|
||||
invoke = typeConstructor$notFoundClass(this, type, type.getClassName());
|
||||
}
|
||||
} else if (type.hasTypeParameter()) {
|
||||
invoke = loadTypeParameter(type.getTypeParameter());
|
||||
if (invoke == null) {
|
||||
return ErrorUtils.INSTANCE.createErrorTypeConstructor(ErrorTypeKind.CANNOT_LOAD_DESERIALIZE_TYPE_PARAMETER, String.valueOf(type.getTypeParameter()), this.containerPresentableName);
|
||||
}
|
||||
} else if (type.hasTypeParameterName()) {
|
||||
String string = this.f7138c.getNameResolver().getString(type.getTypeParameterName());
|
||||
Iterator<T> it = getOwnTypeParameters().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (Intrinsics.areEqual(((TypeParameterDescriptor) obj).getName().asString(), string)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
invoke = (TypeParameterDescriptor) obj;
|
||||
if (invoke == null) {
|
||||
return ErrorUtils.INSTANCE.createErrorTypeConstructor(ErrorTypeKind.CANNOT_LOAD_DESERIALIZE_TYPE_PARAMETER_BY_NAME, string, this.f7138c.getContainingDeclaration().toString());
|
||||
}
|
||||
} else {
|
||||
if (!type.hasTypeAliasName()) {
|
||||
return ErrorUtils.INSTANCE.createErrorTypeConstructor(ErrorTypeKind.UNKNOWN_TYPE, new String[0]);
|
||||
}
|
||||
invoke = this.typeAliasDescriptors.invoke(Integer.valueOf(type.getTypeAliasName()));
|
||||
if (invoke == null) {
|
||||
invoke = typeConstructor$notFoundClass(this, type, type.getTypeAliasName());
|
||||
}
|
||||
}
|
||||
TypeConstructor typeConstructor = invoke.getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
|
||||
return typeConstructor;
|
||||
}
|
||||
|
||||
private static final ClassDescriptor typeConstructor$notFoundClass(final TypeDeserializer typeDeserializer, ProtoBuf.Type type, int i) {
|
||||
ClassId classId = NameResolverUtilKt.getClassId(typeDeserializer.f7138c.getNameResolver(), i);
|
||||
List<Integer> mutableList = SequencesKt.toMutableList(SequencesKt.map(SequencesKt.generateSequence(type, new Function1<ProtoBuf.Type, ProtoBuf.Type>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$typeConstructor$notFoundClass$typeParametersCount$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final ProtoBuf.Type invoke(ProtoBuf.Type it) {
|
||||
DeserializationContext deserializationContext;
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
deserializationContext = TypeDeserializer.this.f7138c;
|
||||
return ProtoTypeTableUtilKt.outerType(it, deserializationContext.getTypeTable());
|
||||
}
|
||||
}), new Function1<ProtoBuf.Type, Integer>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$typeConstructor$notFoundClass$typeParametersCount$2
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Integer invoke(ProtoBuf.Type it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
return Integer.valueOf(it.getArgumentCount());
|
||||
}
|
||||
}));
|
||||
int count = SequencesKt.count(SequencesKt.generateSequence(classId, TypeDeserializer$typeConstructor$notFoundClass$classNestingLevel$1.INSTANCE));
|
||||
while (mutableList.size() < count) {
|
||||
mutableList.add(0);
|
||||
}
|
||||
return typeDeserializer.f7138c.getComponents().getNotFoundClasses().getClass(classId, mutableList);
|
||||
}
|
||||
|
||||
public final List<TypeParameterDescriptor> getOwnTypeParameters() {
|
||||
return CollectionsKt.toList(this.typeParameterDescriptors.values());
|
||||
}
|
||||
|
||||
public final SimpleType simpleType(final ProtoBuf.Type proto, boolean z3) {
|
||||
int collectionSizeOrDefault;
|
||||
SimpleType simpleType;
|
||||
SimpleType withAbbreviation;
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
SimpleType computeLocalClassifierReplacementType = proto.hasClassName() ? computeLocalClassifierReplacementType(proto.getClassName()) : proto.hasTypeAliasName() ? computeLocalClassifierReplacementType(proto.getTypeAliasName()) : null;
|
||||
if (computeLocalClassifierReplacementType != null) {
|
||||
return computeLocalClassifierReplacementType;
|
||||
}
|
||||
TypeConstructor typeConstructor = typeConstructor(proto);
|
||||
if (ErrorUtils.isError(typeConstructor.mo1394getDeclarationDescriptor())) {
|
||||
return ErrorUtils.INSTANCE.createErrorType(ErrorTypeKind.TYPE_FOR_ERROR_TYPE_CONSTRUCTOR, typeConstructor, typeConstructor.toString());
|
||||
}
|
||||
DeserializedAnnotations deserializedAnnotations = new DeserializedAnnotations(this.f7138c.getStorageManager(), new Function0<List<? extends AnnotationDescriptor>>() { // from class: kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer$simpleType$annotations$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final List<? extends AnnotationDescriptor> invoke() {
|
||||
DeserializationContext deserializationContext;
|
||||
DeserializationContext deserializationContext2;
|
||||
deserializationContext = TypeDeserializer.this.f7138c;
|
||||
AnnotationAndConstantLoader<AnnotationDescriptor, ConstantValue<?>> annotationAndConstantLoader = deserializationContext.getComponents().getAnnotationAndConstantLoader();
|
||||
ProtoBuf.Type type = proto;
|
||||
deserializationContext2 = TypeDeserializer.this.f7138c;
|
||||
return annotationAndConstantLoader.loadTypeAnnotations(type, deserializationContext2.getNameResolver());
|
||||
}
|
||||
});
|
||||
TypeAttributes attributes = toAttributes(this.f7138c.getComponents().getTypeAttributeTranslators(), deserializedAnnotations, typeConstructor, this.f7138c.getContainingDeclaration());
|
||||
List<ProtoBuf.Type.Argument> simpleType$collectAllArguments = simpleType$collectAllArguments(proto, this);
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(simpleType$collectAllArguments, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
int i = 0;
|
||||
for (Object obj : simpleType$collectAllArguments) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
|
||||
arrayList.add(typeArgument((TypeParameterDescriptor) CollectionsKt.getOrNull(parameters, i), (ProtoBuf.Type.Argument) obj));
|
||||
i = i4;
|
||||
}
|
||||
List<? extends TypeProjection> list = CollectionsKt.toList(arrayList);
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = typeConstructor.mo1394getDeclarationDescriptor();
|
||||
if (z3 && (mo1394getDeclarationDescriptor instanceof TypeAliasDescriptor)) {
|
||||
SimpleType computeExpandedType = KotlinTypeFactory.computeExpandedType((TypeAliasDescriptor) mo1394getDeclarationDescriptor, list);
|
||||
simpleType = computeExpandedType.makeNullableAsSpecified(KotlinTypeKt.isNullable(computeExpandedType) || proto.getNullable()).replaceAttributes(toAttributes(this.f7138c.getComponents().getTypeAttributeTranslators(), Annotations.Companion.create(CollectionsKt.plus((Iterable) deserializedAnnotations, (Iterable) computeExpandedType.getAnnotations())), typeConstructor, this.f7138c.getContainingDeclaration()));
|
||||
} else {
|
||||
Boolean bool = Flags.SUSPEND_TYPE.get(proto.getFlags());
|
||||
Intrinsics.checkNotNullExpressionValue(bool, "get(...)");
|
||||
if (bool.booleanValue()) {
|
||||
simpleType = createSuspendFunctionType(attributes, typeConstructor, list, proto.getNullable());
|
||||
} else {
|
||||
SimpleType simpleType$default = KotlinTypeFactory.simpleType$default(attributes, typeConstructor, list, proto.getNullable(), (KotlinTypeRefiner) null, 16, (Object) null);
|
||||
Boolean bool2 = Flags.DEFINITELY_NOT_NULL_TYPE.get(proto.getFlags());
|
||||
Intrinsics.checkNotNullExpressionValue(bool2, "get(...)");
|
||||
if (bool2.booleanValue()) {
|
||||
simpleType = DefinitelyNotNullType.Companion.makeDefinitelyNotNull$default(DefinitelyNotNullType.Companion, simpleType$default, true, false, 4, null);
|
||||
if (simpleType == null) {
|
||||
throw new IllegalStateException(("null DefinitelyNotNullType for '" + simpleType$default + '\'').toString());
|
||||
}
|
||||
} else {
|
||||
simpleType = simpleType$default;
|
||||
}
|
||||
}
|
||||
}
|
||||
ProtoBuf.Type abbreviatedType = ProtoTypeTableUtilKt.abbreviatedType(proto, this.f7138c.getTypeTable());
|
||||
return (abbreviatedType == null || (withAbbreviation = SpecialTypesKt.withAbbreviation(simpleType, simpleType(abbreviatedType, false))) == null) ? simpleType : withAbbreviation;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String str;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(this.debugName);
|
||||
if (this.parent == null) {
|
||||
str = "";
|
||||
} else {
|
||||
str = ". Child of " + this.parent.debugName;
|
||||
}
|
||||
sb.append(str);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public final KotlinType type(ProtoBuf.Type proto) {
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
if (!proto.hasFlexibleTypeCapabilitiesId()) {
|
||||
return simpleType(proto, true);
|
||||
}
|
||||
String string = this.f7138c.getNameResolver().getString(proto.getFlexibleTypeCapabilitiesId());
|
||||
SimpleType simpleType$default = simpleType$default(this, proto, false, 2, null);
|
||||
ProtoBuf.Type flexibleUpperBound = ProtoTypeTableUtilKt.flexibleUpperBound(proto, this.f7138c.getTypeTable());
|
||||
Intrinsics.checkNotNull(flexibleUpperBound);
|
||||
return this.f7138c.getComponents().getFlexibleTypeDeserializer().create(proto, string, simpleType$default, simpleType$default(this, flexibleUpperBound, false, 2, null));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TypeDeserializerKt {
|
||||
private static final FqName EXPERIMENTAL_CONTINUATION_FQ_NAME = new FqName("kotlin.coroutines.experimental.Continuation");
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Pair;
|
||||
import kotlin.TuplesKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.InlineClassRepresentation;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.MultiFieldValueClassRepresentation;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ValueClassRepresentation;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.types.model.SimpleTypeMarker;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nValueClassUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ValueClassUtil.kt\norg/jetbrains/kotlin/serialization/deserialization/ValueClassUtilKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,46:1\n1549#2:47\n1620#2,3:48\n1549#2:51\n1620#2,3:52\n1549#2:55\n1620#2,3:56\n*S KotlinDebug\n*F\n+ 1 ValueClassUtil.kt\norg/jetbrains/kotlin/serialization/deserialization/ValueClassUtilKt\n*L\n25#1:47\n25#1:48,3\n29#1:51\n29#1:52,3\n32#1:55\n32#1:56,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class ValueClassUtilKt {
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r5v1, types: [java.util.List] */
|
||||
/* JADX WARN: Type inference failed for: r5v2, types: [java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r5v7, types: [java.util.ArrayList] */
|
||||
public static final <T extends SimpleTypeMarker> ValueClassRepresentation<T> loadValueClassRepresentation(ProtoBuf.Class r4, NameResolver nameResolver, TypeTable typeTable, Function1<? super ProtoBuf.Type, ? extends T> typeDeserializer, Function1<? super Name, ? extends T> typeOfPublicProperty) {
|
||||
T invoke;
|
||||
int collectionSizeOrDefault;
|
||||
?? multiFieldValueClassUnderlyingTypeList;
|
||||
int collectionSizeOrDefault2;
|
||||
int collectionSizeOrDefault3;
|
||||
Intrinsics.checkNotNullParameter(r4, "<this>");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(typeDeserializer, "typeDeserializer");
|
||||
Intrinsics.checkNotNullParameter(typeOfPublicProperty, "typeOfPublicProperty");
|
||||
if (r4.getMultiFieldValueClassUnderlyingNameCount() <= 0) {
|
||||
if (!r4.hasInlineClassUnderlyingPropertyName()) {
|
||||
return null;
|
||||
}
|
||||
Name name = NameResolverUtilKt.getName(nameResolver, r4.getInlineClassUnderlyingPropertyName());
|
||||
ProtoBuf.Type inlineClassUnderlyingType = ProtoTypeTableUtilKt.inlineClassUnderlyingType(r4, typeTable);
|
||||
if ((inlineClassUnderlyingType != null && (invoke = typeDeserializer.invoke(inlineClassUnderlyingType)) != null) || (invoke = typeOfPublicProperty.invoke(name)) != null) {
|
||||
return new InlineClassRepresentation(name, invoke);
|
||||
}
|
||||
throw new IllegalStateException(("cannot determine underlying type for value class " + NameResolverUtilKt.getName(nameResolver, r4.getFqName()) + " with property " + name).toString());
|
||||
}
|
||||
List<Integer> multiFieldValueClassUnderlyingNameList = r4.getMultiFieldValueClassUnderlyingNameList();
|
||||
Intrinsics.checkNotNullExpressionValue(multiFieldValueClassUnderlyingNameList, "getMultiFieldValueClassUnderlyingNameList(...)");
|
||||
List<Integer> list = multiFieldValueClassUnderlyingNameList;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (Integer num : list) {
|
||||
Intrinsics.checkNotNull(num);
|
||||
arrayList.add(NameResolverUtilKt.getName(nameResolver, num.intValue()));
|
||||
}
|
||||
Pair pair = TuplesKt.to(Integer.valueOf(r4.getMultiFieldValueClassUnderlyingTypeIdCount()), Integer.valueOf(r4.getMultiFieldValueClassUnderlyingTypeCount()));
|
||||
if (Intrinsics.areEqual(pair, TuplesKt.to(Integer.valueOf(arrayList.size()), 0))) {
|
||||
List<Integer> multiFieldValueClassUnderlyingTypeIdList = r4.getMultiFieldValueClassUnderlyingTypeIdList();
|
||||
Intrinsics.checkNotNullExpressionValue(multiFieldValueClassUnderlyingTypeIdList, "getMultiFieldValueClassUnderlyingTypeIdList(...)");
|
||||
List<Integer> list2 = multiFieldValueClassUnderlyingTypeIdList;
|
||||
collectionSizeOrDefault3 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
multiFieldValueClassUnderlyingTypeList = new ArrayList(collectionSizeOrDefault3);
|
||||
for (Integer num2 : list2) {
|
||||
Intrinsics.checkNotNull(num2);
|
||||
multiFieldValueClassUnderlyingTypeList.add(typeTable.get(num2.intValue()));
|
||||
}
|
||||
} else {
|
||||
if (!Intrinsics.areEqual(pair, TuplesKt.to(0, Integer.valueOf(arrayList.size())))) {
|
||||
throw new IllegalStateException(("class " + NameResolverUtilKt.getName(nameResolver, r4.getFqName()) + " has illegal multi-field value class representation").toString());
|
||||
}
|
||||
multiFieldValueClassUnderlyingTypeList = r4.getMultiFieldValueClassUnderlyingTypeList();
|
||||
}
|
||||
Intrinsics.checkNotNull(multiFieldValueClassUnderlyingTypeList);
|
||||
Iterable iterable = (Iterable) multiFieldValueClassUnderlyingTypeList;
|
||||
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(iterable, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
|
||||
Iterator it = iterable.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(typeDeserializer.invoke(it.next()));
|
||||
}
|
||||
return new MultiFieldValueClassRepresentation(CollectionsKt.zip(arrayList, arrayList2));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins;
|
||||
|
||||
import C.w;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.SerializerExtensionProtocol;
|
||||
import kotlin.text.StringsKt__StringsJVMKt;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nBuiltInSerializerProtocol.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BuiltInSerializerProtocol.kt\norg/jetbrains/kotlin/serialization/deserialization/builtins/BuiltInSerializerProtocol\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,46:1\n1#2:47\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BuiltInSerializerProtocol extends SerializerExtensionProtocol {
|
||||
public static final BuiltInSerializerProtocol INSTANCE = new BuiltInSerializerProtocol();
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private BuiltInSerializerProtocol() {
|
||||
/*
|
||||
r18 = this;
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.ExtensionRegistryLite r1 = kotlin.reflect.jvm.internal.impl.protobuf.ExtensionRegistryLite.newInstance()
|
||||
kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.registerAllExtensions(r1)
|
||||
java.lang.String r0 = "apply(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Package, java.lang.Integer> r2 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.packageFqName
|
||||
java.lang.String r0 = "packageFqName"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Constructor, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r3 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.constructorAnnotation
|
||||
java.lang.String r0 = "constructorAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Class, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r4 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.classAnnotation
|
||||
java.lang.String r0 = "classAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Function, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r5 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.functionAnnotation
|
||||
java.lang.String r0 = "functionAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Property, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r7 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.propertyAnnotation
|
||||
java.lang.String r0 = "propertyAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r7, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Property, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r8 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.propertyGetterAnnotation
|
||||
java.lang.String r0 = "propertyGetterAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r8, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Property, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r9 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.propertySetterAnnotation
|
||||
java.lang.String r0 = "propertySetterAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$EnumEntry, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r13 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.enumEntryAnnotation
|
||||
java.lang.String r0 = "enumEntryAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r13, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Property, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation$Argument$Value> r14 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.compileTimeValue
|
||||
java.lang.String r0 = "compileTimeValue"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r14, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$ValueParameter, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r15 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.parameterAnnotation
|
||||
java.lang.String r0 = "parameterAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r15, r0)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Type, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r0 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.typeAnnotation
|
||||
java.lang.String r6 = "typeAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r6)
|
||||
kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite$GeneratedExtension<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeParameter, java.util.List<kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Annotation>> r6 = kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsProtoBuf.typeParameterAnnotation
|
||||
java.lang.String r10 = "typeParameterAnnotation"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r6, r10)
|
||||
r17 = r6
|
||||
r6 = 0
|
||||
r10 = 0
|
||||
r11 = 0
|
||||
r12 = 0
|
||||
r16 = r0
|
||||
r0 = r18
|
||||
r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInSerializerProtocol.<init>():void");
|
||||
}
|
||||
|
||||
private final String shortName(FqName fqName) {
|
||||
if (fqName.isRoot()) {
|
||||
return "default-package";
|
||||
}
|
||||
String asString = fqName.shortName().asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
return asString;
|
||||
}
|
||||
|
||||
public final String getBuiltInsFileName(FqName fqName) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
return w.r(new StringBuilder(), shortName(fqName), ".kotlin_builtins");
|
||||
}
|
||||
|
||||
public final String getBuiltInsFilePath(FqName fqName) {
|
||||
String replace$default;
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
String asString = fqName.asString();
|
||||
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
|
||||
replace$default = StringsKt__StringsJVMKt.replace$default(asString, '.', '/', false, 4, (Object) null);
|
||||
sb.append(replace$default);
|
||||
sb.append('/');
|
||||
sb.append(getBuiltInsFileName(fqName));
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins;
|
||||
|
||||
import java.io.InputStream;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class BuiltInsLoaderImpl$createPackageFragmentProvider$1 extends FunctionReference implements Function1<String, InputStream> {
|
||||
public BuiltInsLoaderImpl$createPackageFragmentProvider$1(Object obj) {
|
||||
super(1, obj);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "loadResource";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(BuiltInsResourceLoader.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "loadResource(Ljava/lang/String;)Ljava/io/InputStream;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final InputStream invoke(String p02) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
return ((BuiltInsResourceLoader) this.receiver).loadResource(p02);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins;
|
||||
|
||||
import C.w;
|
||||
import java.io.InputStream;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.NotFoundClasses;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentProviderImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.AdditionalClassPartsProvider;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.PlatformDependentDeclarationFilter;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.LookupTracker;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.sam.SamConversionResolverImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.AnnotationAndConstantLoaderImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ContractDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationConfiguration;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedClassDataFinder;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.ErrorReporter;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.FlexibleTypeDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.LocalClassifierTypeSettings;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nBuiltInsLoaderImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BuiltInsLoaderImpl.kt\norg/jetbrains/kotlin/serialization/deserialization/builtins/BuiltInsLoaderImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,93:1\n1549#2:94\n1620#2,3:95\n*S KotlinDebug\n*F\n+ 1 BuiltInsLoaderImpl.kt\norg/jetbrains/kotlin/serialization/deserialization/builtins/BuiltInsLoaderImpl\n*L\n57#1:94\n57#1:95,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BuiltInsLoaderImpl implements BuiltInsLoader {
|
||||
private final BuiltInsResourceLoader resourceLoader = new BuiltInsResourceLoader();
|
||||
|
||||
public final PackageFragmentProvider createBuiltInPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor moduleDescriptor, Set<FqName> packageFqNames, Iterable<? extends ClassDescriptorFactory> classDescriptorFactories, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z3, Function1<? super String, ? extends InputStream> loadResource) {
|
||||
int collectionSizeOrDefault;
|
||||
StorageManager storageManager2 = storageManager;
|
||||
ModuleDescriptor module = moduleDescriptor;
|
||||
Intrinsics.checkNotNullParameter(storageManager2, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(packageFqNames, "packageFqNames");
|
||||
Intrinsics.checkNotNullParameter(classDescriptorFactories, "classDescriptorFactories");
|
||||
Intrinsics.checkNotNullParameter(platformDependentDeclarationFilter, "platformDependentDeclarationFilter");
|
||||
Intrinsics.checkNotNullParameter(additionalClassPartsProvider, "additionalClassPartsProvider");
|
||||
Intrinsics.checkNotNullParameter(loadResource, "loadResource");
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(packageFqNames, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (FqName fqName : packageFqNames) {
|
||||
String builtInsFilePath = BuiltInSerializerProtocol.INSTANCE.getBuiltInsFilePath(fqName);
|
||||
InputStream invoke = loadResource.invoke(builtInsFilePath);
|
||||
if (invoke == null) {
|
||||
throw new IllegalStateException(w.z("Resource not found in classpath: ", builtInsFilePath));
|
||||
}
|
||||
ModuleDescriptor moduleDescriptor2 = module;
|
||||
storageManager2 = storageManager;
|
||||
module = moduleDescriptor2;
|
||||
arrayList.add(BuiltInsPackageFragmentImpl.Companion.create(fqName, storageManager, moduleDescriptor2, invoke, z3));
|
||||
}
|
||||
PackageFragmentProviderImpl packageFragmentProviderImpl = new PackageFragmentProviderImpl(arrayList);
|
||||
NotFoundClasses notFoundClasses = new NotFoundClasses(storageManager2, module);
|
||||
DeserializationConfiguration.Default r32 = DeserializationConfiguration.Default.INSTANCE;
|
||||
DeserializedClassDataFinder deserializedClassDataFinder = new DeserializedClassDataFinder(packageFragmentProviderImpl);
|
||||
BuiltInSerializerProtocol builtInSerializerProtocol = BuiltInSerializerProtocol.INSTANCE;
|
||||
AnnotationAndConstantLoaderImpl annotationAndConstantLoaderImpl = new AnnotationAndConstantLoaderImpl(module, notFoundClasses, builtInSerializerProtocol);
|
||||
LocalClassifierTypeSettings.Default r7 = LocalClassifierTypeSettings.Default.INSTANCE;
|
||||
ErrorReporter DO_NOTHING = ErrorReporter.DO_NOTHING;
|
||||
Intrinsics.checkNotNullExpressionValue(DO_NOTHING, "DO_NOTHING");
|
||||
DeserializationComponents deserializationComponents = new DeserializationComponents(storageManager2, moduleDescriptor, r32, deserializedClassDataFinder, annotationAndConstantLoaderImpl, packageFragmentProviderImpl, r7, DO_NOTHING, LookupTracker.DO_NOTHING.INSTANCE, FlexibleTypeDeserializer.ThrowException.INSTANCE, classDescriptorFactories, notFoundClasses, ContractDeserializer.Companion.getDEFAULT(), additionalClassPartsProvider, platformDependentDeclarationFilter, builtInSerializerProtocol.getExtensionRegistry(), null, new SamConversionResolverImpl(storageManager2, CollectionsKt.emptyList()), null, null, 851968, null);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
((BuiltInsPackageFragmentImpl) it.next()).initialize(deserializationComponents);
|
||||
}
|
||||
return packageFragmentProviderImpl;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader
|
||||
public PackageFragmentProvider createPackageFragmentProvider(StorageManager storageManager, ModuleDescriptor builtInsModule, Iterable<? extends ClassDescriptorFactory> classDescriptorFactories, PlatformDependentDeclarationFilter platformDependentDeclarationFilter, AdditionalClassPartsProvider additionalClassPartsProvider, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(builtInsModule, "builtInsModule");
|
||||
Intrinsics.checkNotNullParameter(classDescriptorFactories, "classDescriptorFactories");
|
||||
Intrinsics.checkNotNullParameter(platformDependentDeclarationFilter, "platformDependentDeclarationFilter");
|
||||
Intrinsics.checkNotNullParameter(additionalClassPartsProvider, "additionalClassPartsProvider");
|
||||
return createBuiltInPackageFragmentProvider(storageManager, builtInsModule, StandardNames.BUILT_INS_PACKAGE_FQ_NAMES, classDescriptorFactories, platformDependentDeclarationFilter, additionalClassPartsProvider, z3, new BuiltInsLoaderImpl$createPackageFragmentProvider$1(this.resourceLoader));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins;
|
||||
|
||||
import java.io.InputStream;
|
||||
import kotlin.Pair;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.builtins.BuiltInsPackageFragment;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.builtins.BuiltInsBinaryVersion;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.builtins.ReadPackageFragmentKt;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializedPackageFragmentImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BuiltInsPackageFragmentImpl extends DeserializedPackageFragmentImpl implements BuiltInsPackageFragment {
|
||||
public static final Companion Companion = new Companion(null);
|
||||
private final boolean isFallback;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final BuiltInsPackageFragmentImpl create(FqName fqName, StorageManager storageManager, ModuleDescriptor module, InputStream inputStream, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(fqName, "fqName");
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(module, "module");
|
||||
Intrinsics.checkNotNullParameter(inputStream, "inputStream");
|
||||
Pair<ProtoBuf.PackageFragment, BuiltInsBinaryVersion> readBuiltinsPackageFragment = ReadPackageFragmentKt.readBuiltinsPackageFragment(inputStream);
|
||||
ProtoBuf.PackageFragment component1 = readBuiltinsPackageFragment.component1();
|
||||
BuiltInsBinaryVersion component2 = readBuiltinsPackageFragment.component2();
|
||||
if (component1 != null) {
|
||||
return new BuiltInsPackageFragmentImpl(fqName, storageManager, module, component1, component2, z3, null);
|
||||
}
|
||||
throw new UnsupportedOperationException("Kotlin built-in definition format version is not supported: expected " + BuiltInsBinaryVersion.INSTANCE + ", actual " + component2 + ". Please update Kotlin");
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public /* synthetic */ BuiltInsPackageFragmentImpl(FqName fqName, StorageManager storageManager, ModuleDescriptor moduleDescriptor, ProtoBuf.PackageFragment packageFragment, BuiltInsBinaryVersion builtInsBinaryVersion, boolean z3, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(fqName, storageManager, moduleDescriptor, packageFragment, builtInsBinaryVersion, z3);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.PackageFragmentDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorImpl
|
||||
public String toString() {
|
||||
return "builtins package fragment for " + getFqName() + " from " + DescriptorUtilsKt.getModule(this);
|
||||
}
|
||||
|
||||
private BuiltInsPackageFragmentImpl(FqName fqName, StorageManager storageManager, ModuleDescriptor moduleDescriptor, ProtoBuf.PackageFragment packageFragment, BuiltInsBinaryVersion builtInsBinaryVersion, boolean z3) {
|
||||
super(fqName, storageManager, moduleDescriptor, packageFragment, builtInsBinaryVersion, null);
|
||||
this.isFallback = z3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nBuiltInsResourceLoader.kt\nKotlin\n*S Kotlin\n*F\n+ 1 BuiltInsResourceLoader.kt\norg/jetbrains/kotlin/serialization/deserialization/builtins/BuiltInsResourceLoader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,21:1\n1#2:22\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class BuiltInsResourceLoader {
|
||||
public final InputStream loadResource(String path) {
|
||||
Intrinsics.checkNotNullParameter(path, "path");
|
||||
ClassLoader classLoader = BuiltInsResourceLoader.class.getClassLoader();
|
||||
if (classLoader == null) {
|
||||
return ClassLoader.getSystemResourceAsStream(path);
|
||||
}
|
||||
URL resource = classLoader.getResource(path);
|
||||
if (resource == null) {
|
||||
return null;
|
||||
}
|
||||
URLConnection openConnection = resource.openConnection();
|
||||
openConnection.setUseCaches(false);
|
||||
return openConnection.getInputStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface DescriptorWithContainerSource extends MemberDescriptor {
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.PropertyReference1Impl;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KProperty;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.NotNullLazyValue;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageKt;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class DeserializedAnnotations implements Annotations {
|
||||
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(DeserializedAnnotations.class), "annotations", "getAnnotations()Ljava/util/List;"))};
|
||||
private final NotNullLazyValue annotations$delegate;
|
||||
|
||||
public DeserializedAnnotations(StorageManager storageManager, Function0<? extends List<? extends AnnotationDescriptor>> compute) {
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
this.annotations$delegate = storageManager.createLazyValue(compute);
|
||||
}
|
||||
|
||||
private final List<AnnotationDescriptor> getAnnotations() {
|
||||
return (List) StorageKt.getValue(this.annotations$delegate, this, (KProperty<?>) $$delegatedProperties[0]);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations
|
||||
/* renamed from: findAnnotation */
|
||||
public AnnotationDescriptor mo1389findAnnotation(FqName fqName) {
|
||||
return Annotations.DefaultImpls.findAnnotation(this, fqName);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations
|
||||
public boolean hasAnnotation(FqName fqName) {
|
||||
return Annotations.DefaultImpls.hasAnnotation(this, fqName);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations
|
||||
public boolean isEmpty() {
|
||||
return getAnnotations().isEmpty();
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<AnnotationDescriptor> iterator() {
|
||||
return getAnnotations().iterator();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface DeserializedCallableMemberDescriptor extends CallableMemberDescriptor, DeserializedMemberDescriptor {
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassConstructorDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedClassConstructorDescriptor extends ClassConstructorDescriptorImpl implements DeserializedCallableMemberDescriptor {
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private final NameResolver nameResolver;
|
||||
private final ProtoBuf.Constructor proto;
|
||||
private final TypeTable typeTable;
|
||||
private final VersionRequirementTable versionRequirementTable;
|
||||
|
||||
public /* synthetic */ DeserializedClassConstructorDescriptor(ClassDescriptor classDescriptor, ConstructorDescriptor constructorDescriptor, Annotations annotations, boolean z3, CallableMemberDescriptor.Kind kind, ProtoBuf.Constructor constructor, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, DeserializedContainerSource deserializedContainerSource, SourceElement sourceElement, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(classDescriptor, constructorDescriptor, annotations, z3, kind, constructor, nameResolver, typeTable, versionRequirementTable, deserializedContainerSource, (i & 1024) != 0 ? null : sourceElement);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public DeserializedContainerSource getContainerSource() {
|
||||
return this.containerSource;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
public VersionRequirementTable getVersionRequirementTable() {
|
||||
return this.versionRequirementTable;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isExternal() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor
|
||||
public boolean isInline() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor
|
||||
public boolean isSuspend() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor
|
||||
public boolean isTailrec() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX ERROR: NullPointerException in pass: InitCodeVariables
|
||||
java.lang.NullPointerException: Cannot invoke "jadx.core.dex.instructions.args.SSAVar.getPhiList()" because "resultVar" is null
|
||||
at jadx.core.dex.visitors.InitCodeVariables.collectConnectedVars(InitCodeVariables.java:119)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.setCodeVar(InitCodeVariables.java:82)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.initCodeVar(InitCodeVariables.java:74)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.initCodeVars(InitCodeVariables.java:48)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.visit(InitCodeVariables.java:29)
|
||||
*/
|
||||
public DeserializedClassConstructorDescriptor(kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor r12, kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor r13, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations r14, boolean r15, kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor.Kind r16, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf.Constructor r17, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver r18, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable r19, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable r20, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource r21, kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r22) {
|
||||
/*
|
||||
r11 = this;
|
||||
r7 = r17
|
||||
r8 = r18
|
||||
r9 = r19
|
||||
r10 = r20
|
||||
java.lang.String r0 = "containingDeclaration"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
|
||||
java.lang.String r0 = "annotations"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r14, r0)
|
||||
java.lang.String r0 = "kind"
|
||||
r5 = r16
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
|
||||
java.lang.String r0 = "proto"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
|
||||
java.lang.String r0 = "nameResolver"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.String r0 = "typeTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
|
||||
java.lang.String r0 = "versionRequirementTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)
|
||||
if (r22 != 0) goto L38
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r0 = kotlin.reflect.jvm.internal.impl.descriptors.SourceElement.NO_SOURCE
|
||||
r6 = r0
|
||||
r1 = r12
|
||||
r2 = r13
|
||||
r3 = r14
|
||||
r4 = r15
|
||||
r0 = r11
|
||||
goto L3f
|
||||
L38:
|
||||
r6 = r22
|
||||
r0 = r11
|
||||
r1 = r12
|
||||
r2 = r13
|
||||
r3 = r14
|
||||
r4 = r15
|
||||
L3f:
|
||||
r0.<init>(r1, r2, r3, r4, r5, r6)
|
||||
r11.proto = r7
|
||||
r11.nameResolver = r8
|
||||
r11.typeTable = r9
|
||||
r11.versionRequirementTable = r10
|
||||
r1 = r21
|
||||
r11.containerSource = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassConstructorDescriptor.<init>(kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations, boolean, kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor$Kind, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Constructor, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource, kotlin.reflect.jvm.internal.impl.descriptors.SourceElement):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public ProtoBuf.Constructor getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassConstructorDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl
|
||||
public DeserializedClassConstructorDescriptor createSubstitutedCopy(DeclarationDescriptor newOwner, FunctionDescriptor functionDescriptor, CallableMemberDescriptor.Kind kind, Name name, Annotations annotations, SourceElement source) {
|
||||
Intrinsics.checkNotNullParameter(newOwner, "newOwner");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
DeserializedClassConstructorDescriptor deserializedClassConstructorDescriptor = new DeserializedClassConstructorDescriptor((ClassDescriptor) newOwner, (ConstructorDescriptor) functionDescriptor, annotations, this.isPrimary, kind, getProto(), getNameResolver(), getTypeTable(), getVersionRequirementTable(), getContainerSource(), source);
|
||||
deserializedClassConstructorDescriptor.setHasStableParameterNames(hasStableParameterNames());
|
||||
return deserializedClassConstructorDescriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class DeserializedClassDescriptor$computeValueClassRepresentation$1 extends FunctionReference implements Function1<ProtoBuf.Type, SimpleType> {
|
||||
public DeserializedClassDescriptor$computeValueClassRepresentation$1(Object obj) {
|
||||
super(1, obj);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "simpleType";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(Intrinsics.Kotlin.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "computeValueClassRepresentation$simpleType(Lorg/jetbrains/kotlin/serialization/deserialization/TypeDeserializer;Lorg/jetbrains/kotlin/metadata/ProtoBuf$Type;)Lorg/jetbrains/kotlin/types/SimpleType;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final SimpleType invoke(ProtoBuf.Type p02) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
return TypeDeserializer.simpleType$default((TypeDeserializer) this.receiver, p02, false, 2, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class DeserializedClassDescriptor$computeValueClassRepresentation$2 extends FunctionReference implements Function1<Name, SimpleType> {
|
||||
public DeserializedClassDescriptor$computeValueClassRepresentation$2(Object obj) {
|
||||
super(1, obj);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "getValueClassPropertyType";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(DeserializedClassDescriptor.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "getValueClassPropertyType(Lorg/jetbrains/kotlin/name/Name;)Lorg/jetbrains/kotlin/types/SimpleType;";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final SimpleType invoke(Name p02) {
|
||||
SimpleType valueClassPropertyType;
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
valueClassPropertyType = ((DeserializedClassDescriptor) this.receiver).getValueClassPropertyType(p02);
|
||||
return valueClassPropertyType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReference;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.reflect.KDeclarationContainer;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class DeserializedClassDescriptor$memberScopeHolder$1 extends FunctionReference implements Function1<KotlinTypeRefiner, DeserializedClassDescriptor.DeserializedClassMemberScope> {
|
||||
public DeserializedClassDescriptor$memberScopeHolder$1(Object obj) {
|
||||
super(1, obj);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
|
||||
public final String getName() {
|
||||
return "<init>";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final KDeclarationContainer getOwner() {
|
||||
return Reflection.getOrCreateKotlinClass(DeserializedClassDescriptor.DeserializedClassMemberScope.class);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.internal.CallableReference
|
||||
public final String getSignature() {
|
||||
return "<init>(Lorg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedClassDescriptor;Lorg/jetbrains/kotlin/types/checker/KotlinTypeRefiner;)V";
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final DeserializedClassDescriptor.DeserializedClassMemberScope invoke(KotlinTypeRefiner p02) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
return new DeserializedClassDescriptor.DeserializedClassMemberScope((DeserializedClassDescriptor) this.receiver, p02);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,36 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedContainerAbiStability {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ DeserializedContainerAbiStability[] $VALUES;
|
||||
public static final DeserializedContainerAbiStability STABLE = new DeserializedContainerAbiStability("STABLE", 0);
|
||||
public static final DeserializedContainerAbiStability FIR_UNSTABLE = new DeserializedContainerAbiStability("FIR_UNSTABLE", 1);
|
||||
public static final DeserializedContainerAbiStability IR_UNSTABLE = new DeserializedContainerAbiStability("IR_UNSTABLE", 2);
|
||||
|
||||
private static final /* synthetic */ DeserializedContainerAbiStability[] $values() {
|
||||
return new DeserializedContainerAbiStability[]{STABLE, FIR_UNSTABLE, IR_UNSTABLE};
|
||||
}
|
||||
|
||||
static {
|
||||
DeserializedContainerAbiStability[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private DeserializedContainerAbiStability(String str, int i) {
|
||||
}
|
||||
|
||||
public static DeserializedContainerAbiStability valueOf(String str) {
|
||||
return (DeserializedContainerAbiStability) Enum.valueOf(DeserializedContainerAbiStability.class, str);
|
||||
}
|
||||
|
||||
public static DeserializedContainerAbiStability[] values() {
|
||||
return (DeserializedContainerAbiStability[]) $VALUES.clone();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface DeserializedContainerSource extends SourceElement {
|
||||
String getPresentableString();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeserializedDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface DeserializedMemberDescriptor extends DeserializedDescriptor, MemberDescriptor, DescriptorWithContainerSource {
|
||||
DeserializedContainerSource getContainerSource();
|
||||
|
||||
NameResolver getNameResolver();
|
||||
|
||||
MessageLite getProto();
|
||||
|
||||
TypeTable getTypeTable();
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Lambda;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
|
||||
import kotlin.reflect.jvm.internal.impl.protobuf.Parser;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nDeserializedMemberScope.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DeserializedMemberScope.kt\norg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberScope$OptimizedImplementation$computeDescriptors$1$1\n*L\n1#1,512:1\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedMemberScope$OptimizedImplementation$computeDescriptors$1$1 extends Lambda implements Function0 {
|
||||
final /* synthetic */ ByteArrayInputStream $inputStream;
|
||||
final /* synthetic */ Parser $parser;
|
||||
final /* synthetic */ DeserializedMemberScope this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DeserializedMemberScope$OptimizedImplementation$computeDescriptors$1$1(Parser parser, ByteArrayInputStream byteArrayInputStream, DeserializedMemberScope deserializedMemberScope) {
|
||||
super(0);
|
||||
this.$parser = parser;
|
||||
this.$inputStream = byteArrayInputStream;
|
||||
this.this$0 = deserializedMemberScope;
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final MessageLite invoke() {
|
||||
return (MessageLite) this.$parser.parseDelimitedFrom(this.$inputStream, this.this$0.getC().getComponents().getExtensionRegistryLite());
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,181 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.collections.SetsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.deserialization.ClassDescriptorFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.UtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.LookupLocation;
|
||||
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
|
||||
import kotlin.reflect.jvm.internal.impl.name.ClassId;
|
||||
import kotlin.reflect.jvm.internal.impl.name.FqName;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.scopes.DescriptorKindFilter;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nDeserializedPackageMemberScope.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DeserializedPackageMemberScope.kt\norg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,81:1\n1360#2:82\n1446#2,5:83\n1747#2,3:88\n*S KotlinDebug\n*F\n+ 1 DeserializedPackageMemberScope.kt\norg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedPackageMemberScope\n*L\n55#1:82\n55#1:83,5\n58#1:88,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public class DeserializedPackageMemberScope extends DeserializedMemberScope {
|
||||
private final String debugName;
|
||||
private final PackageFragmentDescriptor packageDescriptor;
|
||||
private final FqName packageFqName;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public DeserializedPackageMemberScope(kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor r10, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf.Package r11, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver r12, kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion r13, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource r14, kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents r15, java.lang.String r16, kotlin.jvm.functions.Function0<? extends java.util.Collection<kotlin.reflect.jvm.internal.impl.name.Name>> r17) {
|
||||
/*
|
||||
r9 = this;
|
||||
r7 = r16
|
||||
java.lang.String r0 = "packageDescriptor"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)
|
||||
java.lang.String r0 = "proto"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r0)
|
||||
java.lang.String r0 = "nameResolver"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
|
||||
java.lang.String r0 = "metadataVersion"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r13, r0)
|
||||
java.lang.String r0 = "components"
|
||||
r3 = r15
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r15, r0)
|
||||
java.lang.String r0 = "debugName"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
|
||||
java.lang.String r0 = "classNames"
|
||||
r8 = r17
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable r3 = new kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable
|
||||
kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeTable r0 = r11.getTypeTable()
|
||||
java.lang.String r4 = "getTypeTable(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r4)
|
||||
r3.<init>(r0)
|
||||
kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable$Companion r0 = kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable.Companion
|
||||
kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$VersionRequirementTable r4 = r11.getVersionRequirementTable()
|
||||
java.lang.String r6 = "getVersionRequirementTable(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r6)
|
||||
kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable r4 = r0.create(r4)
|
||||
r1 = r10
|
||||
r2 = r12
|
||||
r5 = r13
|
||||
r6 = r14
|
||||
r0 = r15
|
||||
kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext r0 = r0.createContext(r1, r2, r3, r4, r5, r6)
|
||||
java.util.List r2 = r11.getFunctionList()
|
||||
java.lang.String r1 = "getFunctionList(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r1)
|
||||
java.util.List r3 = r11.getPropertyList()
|
||||
java.lang.String r1 = "getPropertyList(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r1)
|
||||
java.util.List r4 = r11.getTypeAliasList()
|
||||
java.lang.String r1 = "getTypeAliasList(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r1)
|
||||
r1 = r0
|
||||
r5 = r8
|
||||
r0 = r9
|
||||
r0.<init>(r1, r2, r3, r4, r5)
|
||||
r9.packageDescriptor = r10
|
||||
r9.debugName = r7
|
||||
kotlin.reflect.jvm.internal.impl.name.FqName r1 = r10.getFqName()
|
||||
r9.packageFqName = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPackageMemberScope.<init>(kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Package, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver, kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource, kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents, java.lang.String, kotlin.jvm.functions.Function0):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public void addEnumEntryDescriptors(Collection<DeclarationDescriptor> result, Function1<? super Name, Boolean> nameFilter) {
|
||||
Intrinsics.checkNotNullParameter(result, "result");
|
||||
Intrinsics.checkNotNullParameter(nameFilter, "nameFilter");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public ClassId createClassId(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
return new ClassId(this.packageFqName, name);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope, kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl, kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope
|
||||
/* renamed from: getContributedClassifier */
|
||||
public ClassifierDescriptor mo1396getContributedClassifier(Name name, LookupLocation location) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(location, "location");
|
||||
mo1400recordLookup(name, location);
|
||||
return super.mo1396getContributedClassifier(name, location);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl, kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope
|
||||
public /* bridge */ /* synthetic */ Collection getContributedDescriptors(DescriptorKindFilter descriptorKindFilter, Function1 function1) {
|
||||
return getContributedDescriptors(descriptorKindFilter, (Function1<? super Name, Boolean>) function1);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public Set<Name> getNonDeclaredClassifierNames() {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public Set<Name> getNonDeclaredFunctionNames() {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public Set<Name> getNonDeclaredVariableNames() {
|
||||
return SetsKt.emptySet();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberScope
|
||||
public boolean hasClass(Name name) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
if (super.hasClass(name)) {
|
||||
return true;
|
||||
}
|
||||
Iterable<ClassDescriptorFactory> fictitiousClassDescriptorFactories = getC().getComponents().getFictitiousClassDescriptorFactories();
|
||||
if ((fictitiousClassDescriptorFactories instanceof Collection) && ((Collection) fictitiousClassDescriptorFactories).isEmpty()) {
|
||||
return false;
|
||||
}
|
||||
Iterator<ClassDescriptorFactory> it = fictitiousClassDescriptorFactories.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (it.next().shouldCreateClass(this.packageFqName, name)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl, kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope
|
||||
/* renamed from: recordLookup */
|
||||
public void mo1400recordLookup(Name name, LookupLocation location) {
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(location, "location");
|
||||
UtilsKt.record(getC().getComponents().getLookupTracker(), location, this.packageDescriptor, name);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return this.debugName;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScopeImpl, kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope
|
||||
public List<DeclarationDescriptor> getContributedDescriptors(DescriptorKindFilter kindFilter, Function1<? super Name, Boolean> nameFilter) {
|
||||
Intrinsics.checkNotNullParameter(kindFilter, "kindFilter");
|
||||
Intrinsics.checkNotNullParameter(nameFilter, "nameFilter");
|
||||
Collection<DeclarationDescriptor> computeDescriptors = computeDescriptors(kindFilter, nameFilter, NoLookupLocation.WHEN_GET_ALL_DESCRIPTORS);
|
||||
Iterable<ClassDescriptorFactory> fictitiousClassDescriptorFactories = getC().getComponents().getFictitiousClassDescriptorFactories();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
Iterator<ClassDescriptorFactory> it = fictitiousClassDescriptorFactories.iterator();
|
||||
while (it.hasNext()) {
|
||||
CollectionsKt__MutableCollectionsKt.addAll(arrayList, it.next().getAllContributedClassesIfPossible(this.packageFqName));
|
||||
}
|
||||
return CollectionsKt.plus((Collection) computeDescriptors, (Iterable) arrayList);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.PropertyDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.Flags;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedPropertyDescriptor extends PropertyDescriptorImpl implements DeserializedCallableMemberDescriptor {
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private final NameResolver nameResolver;
|
||||
private final ProtoBuf.Property proto;
|
||||
private final TypeTable typeTable;
|
||||
private final VersionRequirementTable versionRequirementTable;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public DeserializedPropertyDescriptor(DeclarationDescriptor containingDeclaration, PropertyDescriptor propertyDescriptor, Annotations annotations, Modality modality, DescriptorVisibility visibility, boolean z3, Name name, CallableMemberDescriptor.Kind kind, boolean z4, boolean z5, boolean z6, boolean z7, boolean z8, ProtoBuf.Property proto, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, DeserializedContainerSource deserializedContainerSource) {
|
||||
super(containingDeclaration, propertyDescriptor, annotations, modality, visibility, z3, name, kind, SourceElement.NO_SOURCE, z4, z5, z8, false, z6, z7);
|
||||
Intrinsics.checkNotNullParameter(containingDeclaration, "containingDeclaration");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
Intrinsics.checkNotNullParameter(modality, "modality");
|
||||
Intrinsics.checkNotNullParameter(visibility, "visibility");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(proto, "proto");
|
||||
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
|
||||
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
|
||||
Intrinsics.checkNotNullParameter(versionRequirementTable, "versionRequirementTable");
|
||||
this.proto = proto;
|
||||
this.nameResolver = nameResolver;
|
||||
this.typeTable = typeTable;
|
||||
this.versionRequirementTable = versionRequirementTable;
|
||||
this.containerSource = deserializedContainerSource;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.PropertyDescriptorImpl
|
||||
public PropertyDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, Modality newModality, DescriptorVisibility newVisibility, PropertyDescriptor propertyDescriptor, CallableMemberDescriptor.Kind kind, Name newName, SourceElement source) {
|
||||
Intrinsics.checkNotNullParameter(newOwner, "newOwner");
|
||||
Intrinsics.checkNotNullParameter(newModality, "newModality");
|
||||
Intrinsics.checkNotNullParameter(newVisibility, "newVisibility");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(newName, "newName");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
return new DeserializedPropertyDescriptor(newOwner, propertyDescriptor, getAnnotations(), newModality, newVisibility, isVar(), newName, kind, isLateInit(), isConst(), isExternal(), isDelegated(), isExpect(), getProto(), getNameResolver(), getTypeTable(), getVersionRequirementTable(), getContainerSource());
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public DeserializedContainerSource getContainerSource() {
|
||||
return this.containerSource;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
public VersionRequirementTable getVersionRequirementTable() {
|
||||
return this.versionRequirementTable;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.PropertyDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.MemberDescriptor
|
||||
public boolean isExternal() {
|
||||
Boolean bool = Flags.IS_EXTERNAL_PROPERTY.get(getProto().getFlags());
|
||||
Intrinsics.checkNotNullExpressionValue(bool, "get(...)");
|
||||
return bool.booleanValue();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public ProtoBuf.Property getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.SimpleFunctionDescriptorImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedSimpleFunctionDescriptor extends SimpleFunctionDescriptorImpl implements DeserializedCallableMemberDescriptor {
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private final NameResolver nameResolver;
|
||||
private final ProtoBuf.Function proto;
|
||||
private final TypeTable typeTable;
|
||||
private final VersionRequirementTable versionRequirementTable;
|
||||
|
||||
public /* synthetic */ DeserializedSimpleFunctionDescriptor(DeclarationDescriptor declarationDescriptor, SimpleFunctionDescriptor simpleFunctionDescriptor, Annotations annotations, Name name, CallableMemberDescriptor.Kind kind, ProtoBuf.Function function, NameResolver nameResolver, TypeTable typeTable, VersionRequirementTable versionRequirementTable, DeserializedContainerSource deserializedContainerSource, SourceElement sourceElement, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(declarationDescriptor, simpleFunctionDescriptor, annotations, name, kind, function, nameResolver, typeTable, versionRequirementTable, deserializedContainerSource, (i & 1024) != 0 ? null : sourceElement);
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.SimpleFunctionDescriptorImpl, kotlin.reflect.jvm.internal.impl.descriptors.impl.FunctionDescriptorImpl
|
||||
public FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, FunctionDescriptor functionDescriptor, CallableMemberDescriptor.Kind kind, Name name, Annotations annotations, SourceElement source) {
|
||||
Name name2;
|
||||
Intrinsics.checkNotNullParameter(newOwner, "newOwner");
|
||||
Intrinsics.checkNotNullParameter(kind, "kind");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
Intrinsics.checkNotNullParameter(source, "source");
|
||||
SimpleFunctionDescriptor simpleFunctionDescriptor = (SimpleFunctionDescriptor) functionDescriptor;
|
||||
if (name == null) {
|
||||
Name name3 = getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name3, "getName(...)");
|
||||
name2 = name3;
|
||||
} else {
|
||||
name2 = name;
|
||||
}
|
||||
DeserializedSimpleFunctionDescriptor deserializedSimpleFunctionDescriptor = new DeserializedSimpleFunctionDescriptor(newOwner, simpleFunctionDescriptor, annotations, name2, kind, getProto(), getNameResolver(), getTypeTable(), getVersionRequirementTable(), getContainerSource(), source);
|
||||
deserializedSimpleFunctionDescriptor.setHasStableParameterNames(hasStableParameterNames());
|
||||
return deserializedSimpleFunctionDescriptor;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public DeserializedContainerSource getContainerSource() {
|
||||
return this.containerSource;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
public VersionRequirementTable getVersionRequirementTable() {
|
||||
return this.versionRequirementTable;
|
||||
}
|
||||
|
||||
/* JADX ERROR: NullPointerException in pass: InitCodeVariables
|
||||
java.lang.NullPointerException: Cannot invoke "jadx.core.dex.instructions.args.SSAVar.getPhiList()" because "resultVar" is null
|
||||
at jadx.core.dex.visitors.InitCodeVariables.collectConnectedVars(InitCodeVariables.java:119)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.setCodeVar(InitCodeVariables.java:82)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.initCodeVar(InitCodeVariables.java:74)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.initCodeVars(InitCodeVariables.java:48)
|
||||
at jadx.core.dex.visitors.InitCodeVariables.visit(InitCodeVariables.java:29)
|
||||
*/
|
||||
public DeserializedSimpleFunctionDescriptor(kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r12, kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor r13, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations r14, kotlin.reflect.jvm.internal.impl.name.Name r15, kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor.Kind r16, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf.Function r17, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver r18, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable r19, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable r20, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource r21, kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r22) {
|
||||
/*
|
||||
r11 = this;
|
||||
r7 = r17
|
||||
r8 = r18
|
||||
r9 = r19
|
||||
r10 = r20
|
||||
java.lang.String r0 = "containingDeclaration"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
|
||||
java.lang.String r0 = "annotations"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r14, r0)
|
||||
java.lang.String r0 = "name"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r15, r0)
|
||||
java.lang.String r0 = "kind"
|
||||
r5 = r16
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
|
||||
java.lang.String r0 = "proto"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
|
||||
java.lang.String r0 = "nameResolver"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.String r0 = "typeTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
|
||||
java.lang.String r0 = "versionRequirementTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)
|
||||
if (r22 != 0) goto L3d
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r0 = kotlin.reflect.jvm.internal.impl.descriptors.SourceElement.NO_SOURCE
|
||||
r6 = r0
|
||||
r1 = r12
|
||||
r2 = r13
|
||||
r3 = r14
|
||||
r4 = r15
|
||||
r0 = r11
|
||||
goto L44
|
||||
L3d:
|
||||
r6 = r22
|
||||
r0 = r11
|
||||
r1 = r12
|
||||
r2 = r13
|
||||
r3 = r14
|
||||
r4 = r15
|
||||
L44:
|
||||
r0.<init>(r1, r2, r3, r4, r5, r6)
|
||||
r11.proto = r7
|
||||
r11.nameResolver = r8
|
||||
r11.typeTable = r9
|
||||
r11.versionRequirementTable = r10
|
||||
r1 = r21
|
||||
r11.containerSource = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedSimpleFunctionDescriptor.<init>(kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations, kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor$Kind, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$Function, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource, kotlin.reflect.jvm.internal.impl.descriptors.SourceElement):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public ProtoBuf.Function getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractTypeAliasDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
|
||||
import kotlin.reflect.jvm.internal.impl.name.Name;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedTypeAliasDescriptor extends AbstractTypeAliasDescriptor implements DeserializedMemberDescriptor {
|
||||
private final DeserializedContainerSource containerSource;
|
||||
private SimpleType defaultTypeImpl;
|
||||
private SimpleType expandedType;
|
||||
private final NameResolver nameResolver;
|
||||
private final ProtoBuf.TypeAlias proto;
|
||||
private List<? extends TypeParameterDescriptor> typeConstructorParameters;
|
||||
private final TypeTable typeTable;
|
||||
private SimpleType underlyingType;
|
||||
private final VersionRequirementTable versionRequirementTable;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public DeserializedTypeAliasDescriptor(kotlin.reflect.jvm.internal.impl.storage.StorageManager r12, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r13, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations r14, kotlin.reflect.jvm.internal.impl.name.Name r15, kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility r16, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf.TypeAlias r17, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver r18, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable r19, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable r20, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource r21) {
|
||||
/*
|
||||
r11 = this;
|
||||
r7 = r17
|
||||
r8 = r18
|
||||
r9 = r19
|
||||
r10 = r20
|
||||
java.lang.String r0 = "storageManager"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
|
||||
java.lang.String r0 = "containingDeclaration"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r13, r0)
|
||||
java.lang.String r0 = "annotations"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r14, r0)
|
||||
java.lang.String r0 = "name"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r15, r0)
|
||||
java.lang.String r0 = "visibility"
|
||||
r6 = r16
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
|
||||
java.lang.String r0 = "proto"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
|
||||
java.lang.String r0 = "nameResolver"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
|
||||
java.lang.String r0 = "typeTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
|
||||
java.lang.String r0 = "versionRequirementTable"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r5 = kotlin.reflect.jvm.internal.impl.descriptors.SourceElement.NO_SOURCE
|
||||
java.lang.String r0 = "NO_SOURCE"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
|
||||
r0 = r11
|
||||
r1 = r12
|
||||
r2 = r13
|
||||
r3 = r14
|
||||
r4 = r15
|
||||
r0.<init>(r1, r2, r3, r4, r5, r6)
|
||||
r11.proto = r7
|
||||
r11.nameResolver = r8
|
||||
r11.typeTable = r9
|
||||
r11.versionRequirementTable = r10
|
||||
r1 = r21
|
||||
r11.containerSource = r1
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeAliasDescriptor.<init>(kotlin.reflect.jvm.internal.impl.storage.StorageManager, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations, kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeAlias, kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver, kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable, kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable, kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource):void");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor
|
||||
public ClassDescriptor getClassDescriptor() {
|
||||
if (KotlinTypeKt.isError(getExpandedType())) {
|
||||
return null;
|
||||
}
|
||||
ClassifierDescriptor mo1394getDeclarationDescriptor = getExpandedType().getConstructor().mo1394getDeclarationDescriptor();
|
||||
if (mo1394getDeclarationDescriptor instanceof ClassDescriptor) {
|
||||
return (ClassDescriptor) mo1394getDeclarationDescriptor;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public DeserializedContainerSource getContainerSource() {
|
||||
return this.containerSource;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor
|
||||
public SimpleType getDefaultType() {
|
||||
SimpleType simpleType = this.defaultTypeImpl;
|
||||
if (simpleType != null) {
|
||||
return simpleType;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("defaultTypeImpl");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor
|
||||
public SimpleType getExpandedType() {
|
||||
SimpleType simpleType = this.expandedType;
|
||||
if (simpleType != null) {
|
||||
return simpleType;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("expandedType");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public NameResolver getNameResolver() {
|
||||
return this.nameResolver;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractTypeAliasDescriptor
|
||||
public List<TypeParameterDescriptor> getTypeConstructorTypeParameters() {
|
||||
List list = this.typeConstructorParameters;
|
||||
if (list != null) {
|
||||
return list;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("typeConstructorParameters");
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public TypeTable getTypeTable() {
|
||||
return this.typeTable;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor
|
||||
public SimpleType getUnderlyingType() {
|
||||
SimpleType simpleType = this.underlyingType;
|
||||
if (simpleType != null) {
|
||||
return simpleType;
|
||||
}
|
||||
Intrinsics.throwUninitializedPropertyAccessException("underlyingType");
|
||||
return null;
|
||||
}
|
||||
|
||||
public VersionRequirementTable getVersionRequirementTable() {
|
||||
return this.versionRequirementTable;
|
||||
}
|
||||
|
||||
public final void initialize(List<? extends TypeParameterDescriptor> declaredTypeParameters, SimpleType underlyingType, SimpleType expandedType) {
|
||||
Intrinsics.checkNotNullParameter(declaredTypeParameters, "declaredTypeParameters");
|
||||
Intrinsics.checkNotNullParameter(underlyingType, "underlyingType");
|
||||
Intrinsics.checkNotNullParameter(expandedType, "expandedType");
|
||||
initialize(declaredTypeParameters);
|
||||
this.underlyingType = underlyingType;
|
||||
this.expandedType = expandedType;
|
||||
this.typeConstructorParameters = TypeParameterUtilsKt.computeConstructorTypeParameters(this);
|
||||
this.defaultTypeImpl = computeDefaultType();
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor
|
||||
public ProtoBuf.TypeAlias getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.Substitutable
|
||||
public TypeAliasDescriptor substitute(TypeSubstitutor substitutor) {
|
||||
Intrinsics.checkNotNullParameter(substitutor, "substitutor");
|
||||
if (substitutor.isEmpty()) {
|
||||
return this;
|
||||
}
|
||||
StorageManager storageManager = getStorageManager();
|
||||
DeclarationDescriptor containingDeclaration = getContainingDeclaration();
|
||||
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
|
||||
Annotations annotations = getAnnotations();
|
||||
Intrinsics.checkNotNullExpressionValue(annotations, "<get-annotations>(...)");
|
||||
Name name = getName();
|
||||
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
|
||||
DeserializedTypeAliasDescriptor deserializedTypeAliasDescriptor = new DeserializedTypeAliasDescriptor(storageManager, containingDeclaration, annotations, name, getVisibility(), getProto(), getNameResolver(), getTypeTable(), getVersionRequirementTable(), getContainerSource());
|
||||
List<TypeParameterDescriptor> declaredTypeParameters = getDeclaredTypeParameters();
|
||||
SimpleType underlyingType = getUnderlyingType();
|
||||
Variance variance = Variance.INVARIANT;
|
||||
KotlinType safeSubstitute = substitutor.safeSubstitute(underlyingType, variance);
|
||||
Intrinsics.checkNotNullExpressionValue(safeSubstitute, "safeSubstitute(...)");
|
||||
SimpleType asSimpleType = TypeSubstitutionKt.asSimpleType(safeSubstitute);
|
||||
KotlinType safeSubstitute2 = substitutor.safeSubstitute(getExpandedType(), variance);
|
||||
Intrinsics.checkNotNullExpressionValue(safeSubstitute2, "safeSubstitute(...)");
|
||||
deserializedTypeAliasDescriptor.initialize(declaredTypeParameters, asSimpleType, TypeSubstitutionKt.asSimpleType(safeSubstitute2));
|
||||
return deserializedTypeAliasDescriptor;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractLazyTypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
|
||||
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoTypeTableUtilKt;
|
||||
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext;
|
||||
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.TypeDeserializer;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
|
||||
@SourceDebugExtension({"SMAP\nDeserializedTypeParameterDescriptor.kt\nKotlin\n*S Kotlin\n*F\n+ 1 DeserializedTypeParameterDescriptor.kt\norg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedTypeParameterDescriptor\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,58:1\n1549#2:59\n1620#2,3:60\n*S KotlinDebug\n*F\n+ 1 DeserializedTypeParameterDescriptor.kt\norg/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedTypeParameterDescriptor\n*L\n51#1:59\n51#1:60,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DeserializedTypeParameterDescriptor extends AbstractLazyTypeParameterDescriptor {
|
||||
private final DeserializedAnnotations annotations;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
private final DeserializationContext f7141c;
|
||||
private final ProtoBuf.TypeParameter proto;
|
||||
|
||||
/* JADX WARN: Illegal instructions before constructor call */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public DeserializedTypeParameterDescriptor(kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext r12, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf.TypeParameter r13, int r14) {
|
||||
/*
|
||||
r11 = this;
|
||||
java.lang.String r0 = "c"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r12, r0)
|
||||
java.lang.String r0 = "proto"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r13, r0)
|
||||
kotlin.reflect.jvm.internal.impl.storage.StorageManager r2 = r12.getStorageManager()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r3 = r12.getContainingDeclaration()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations$Companion r0 = kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations.Companion
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations r4 = r0.getEMPTY()
|
||||
kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver r0 = r12.getNameResolver()
|
||||
int r1 = r13.getName()
|
||||
kotlin.reflect.jvm.internal.impl.name.Name r5 = kotlin.reflect.jvm.internal.impl.serialization.deserialization.NameResolverUtilKt.getName(r0, r1)
|
||||
kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoEnumFlags r0 = kotlin.reflect.jvm.internal.impl.serialization.deserialization.ProtoEnumFlags.INSTANCE
|
||||
kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeParameter$Variance r1 = r13.getVariance()
|
||||
java.lang.String r6 = "getVariance(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r6)
|
||||
kotlin.reflect.jvm.internal.impl.types.Variance r6 = r0.variance(r1)
|
||||
boolean r7 = r13.getReified()
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.SourceElement r9 = kotlin.reflect.jvm.internal.impl.descriptors.SourceElement.NO_SOURCE
|
||||
kotlin.reflect.jvm.internal.impl.descriptors.SupertypeLoopChecker$EMPTY r10 = kotlin.reflect.jvm.internal.impl.descriptors.SupertypeLoopChecker.EMPTY.INSTANCE
|
||||
r1 = r11
|
||||
r8 = r14
|
||||
r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10)
|
||||
r1.f7141c = r12
|
||||
r1.proto = r13
|
||||
kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedAnnotations r11 = new kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedAnnotations
|
||||
kotlin.reflect.jvm.internal.impl.storage.StorageManager r12 = r12.getStorageManager()
|
||||
kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor$annotations$1 r13 = new kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor$annotations$1
|
||||
r13.<init>()
|
||||
r11.<init>(r12, r13)
|
||||
r1.annotations = r11
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedTypeParameterDescriptor.<init>(kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext, kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf$TypeParameter, int):void");
|
||||
}
|
||||
|
||||
public final ProtoBuf.TypeParameter getProto() {
|
||||
return this.proto;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractTypeParameterDescriptor
|
||||
public List<KotlinType> resolveUpperBounds() {
|
||||
int collectionSizeOrDefault;
|
||||
List<ProtoBuf.Type> upperBounds = ProtoTypeTableUtilKt.upperBounds(this.proto, this.f7141c.getTypeTable());
|
||||
if (upperBounds.isEmpty()) {
|
||||
return CollectionsKt.listOf(DescriptorUtilsKt.getBuiltIns(this).getDefaultBound());
|
||||
}
|
||||
List<ProtoBuf.Type> list = upperBounds;
|
||||
TypeDeserializer typeDeserializer = this.f7141c.getTypeDeserializer();
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator<T> it = list.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList.add(typeDeserializer.type((ProtoBuf.Type) it.next()));
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotatedImpl, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotated
|
||||
public DeserializedAnnotations getAnnotations() {
|
||||
return this.annotations;
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.AbstractTypeParameterDescriptor
|
||||
/* renamed from: reportSupertypeLoopError, reason: merged with bridge method [inline-methods] */
|
||||
public Void mo1397reportSupertypeLoopError(KotlinType type) {
|
||||
Intrinsics.checkNotNullParameter(type, "type");
|
||||
throw new IllegalStateException("There should be no cycles for deserialized type parameters, but found for: " + this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class NonEmptyDeserializedAnnotations extends DeserializedAnnotations {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public NonEmptyDeserializedAnnotations(StorageManager storageManager, Function0<? extends List<? extends AnnotationDescriptor>> compute) {
|
||||
super(storageManager, compute);
|
||||
Intrinsics.checkNotNullParameter(storageManager, "storageManager");
|
||||
Intrinsics.checkNotNullParameter(compute, "compute");
|
||||
}
|
||||
|
||||
@Override // kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedAnnotations, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations
|
||||
public boolean isEmpty() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user