default -> companion: default object -> class object in project code, builtins and libs code
This commit is contained in:
@@ -28,7 +28,7 @@ public enum class PredefinedAnnotation(fqName: String) {
|
||||
|
||||
public val fqName: FqName = FqName(fqName)
|
||||
|
||||
default object {
|
||||
class object {
|
||||
// TODO: replace with straight assignment when KT-5761 will be fixed
|
||||
val WITH_CUSTOM_NAME by Delegates.lazy { setOf(LIBRARY, NATIVE) }
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class JsAnalysisResult(
|
||||
moduleDescriptor: ModuleDescriptor
|
||||
) : AnalysisResult(bindingTrace.getBindingContext(), moduleDescriptor) {
|
||||
|
||||
default object {
|
||||
class object {
|
||||
platformStatic public fun success(trace: BindingTrace, module: ModuleDescriptor): JsAnalysisResult {
|
||||
return JsAnalysisResult(trace, module)
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ import org.jetbrains.kotlin.resolve.TemporaryBindingTrace
|
||||
|
||||
public class JsCallChecker : CallChecker {
|
||||
|
||||
default object {
|
||||
class object {
|
||||
private val JS_PATTERN: DescriptorPredicate = PatternBuilder.pattern("kotlin.js.js(String)")
|
||||
|
||||
platformStatic
|
||||
|
||||
@@ -94,7 +94,7 @@ public final class AnnotationsUtils {
|
||||
}
|
||||
|
||||
for (DeclarationDescriptor descriptor : descriptors) {
|
||||
for (PredefinedAnnotation annotation : PredefinedAnnotation.Default.getWITH_CUSTOM_NAME()) {
|
||||
for (PredefinedAnnotation annotation : PredefinedAnnotation.OBJECT$.getWITH_CUSTOM_NAME()) {
|
||||
if (!hasAnnotationOrInsideAnnotatedClass(descriptor, annotation)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user