default -> companion: default object -> class object in project code, builtins and libs code

This commit is contained in:
Pavel V. Talanov
2015-03-16 14:51:11 +03:00
parent 444b461ba7
commit 2a6facaef6
151 changed files with 205 additions and 205 deletions
@@ -48,7 +48,7 @@ public class ReferenceVariantsHelper(
public val receivers: Collection<ReceiverValue>,
public val callType: CallType
) {
default object {
class object {
val Empty = ReceiversData(listOf(), CallType.NORMAL)
}
}
@@ -216,7 +216,7 @@ public class ReferenceVariantsHelper(
return resolutionScope.getDescriptorsFiltered(DescriptorKindFilter.PACKAGES, nameFilter).filter(visibilityFilter)
}
default object {
class object {
public fun getExplicitReceiverData(expression: JetSimpleNameExpression): Pair<JetExpression, CallType>? {
val receiverExpression = expression.getReceiverExpression() ?: return null
val parent = expression.getParent()
@@ -469,7 +469,7 @@ class PartialBodyResolveFilter(
NEED_COMPLETION
}
default object {
class object {
private fun JetElement.blocks(): Collection<JetBlockExpression> {
val result = ArrayList<JetBlockExpression>(1)
this.accept(object : JetVisitorVoid() {