default -> companion: replace all mentions of default and default object
This commit is contained in:
@@ -47,7 +47,7 @@ public final class JvmAbi {
|
||||
|
||||
//TODO: To be removed after kotlin M11
|
||||
@Deprecated
|
||||
public static final String DEPRECATED_DEFAULT_OBJECT_FIELD = "OBJECT$";
|
||||
public static final String DEPRECATED_COMPANION_OBJECT_FIELD = "OBJECT$";
|
||||
|
||||
@NotNull
|
||||
public static String getSyntheticMethodNameForAnnotatedProperty(@NotNull Name propertyName) {
|
||||
|
||||
+2
-2
@@ -85,7 +85,7 @@ class LazyJavaClassDescriptor(
|
||||
|
||||
override fun getUnsubstitutedPrimaryConstructor(): ConstructorDescriptor? = null
|
||||
|
||||
override fun getDefaultObjectDescriptor(): ClassDescriptor? = null
|
||||
override fun getCompanionObjectDescriptor(): ClassDescriptor? = null
|
||||
|
||||
override fun getConstructors() = scopeForMemberLookup.constructors()
|
||||
|
||||
@@ -100,7 +100,7 @@ class LazyJavaClassDescriptor(
|
||||
|
||||
override fun getFunctionTypeForSamInterface(): JetType? = functionTypeForSamInterface()
|
||||
|
||||
override fun isDefaultObject() = false
|
||||
override fun isCompanionObject() = false
|
||||
|
||||
override fun toString() = "lazy java class $fqName"
|
||||
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ public abstract class AbstractBinaryClassAnnotationAndConstantLoader<A : Any, C
|
||||
val classKind = Flags.CLASS_KIND[classProto.getFlags()]
|
||||
val classId = nameResolver.getClassId(classProto.getFqName())
|
||||
if (classKind == ProtoBuf.Class.Kind.CLASS_OBJECT && isStaticFieldInOuter(proto)) {
|
||||
// Backing fields of properties of a default object are generated in the outer class
|
||||
// Backing fields of properties of a companion object are generated in the outer class
|
||||
return kotlinClassFinder.findKotlinClass(classId.getOuterClassId())
|
||||
}
|
||||
else if (classKind == ProtoBuf.Class.Kind.TRAIT && annotatedCallableKind == AnnotatedCallableKind.PROPERTY) {
|
||||
|
||||
Reference in New Issue
Block a user