Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text Old syntax is used in builtins and project code for now
This commit is contained in:
@@ -9,7 +9,7 @@ open class Buildable {
|
||||
|
||||
class List<T> {
|
||||
|
||||
class object : Buildable {
|
||||
default object : Buildable {
|
||||
override fun newBuilder<E, R>() : Builder<E, R>
|
||||
|
||||
}
|
||||
|
||||
@@ -132,7 +132,8 @@ JetFile: PolymorphicClassObjects.kt
|
||||
PsiElement(LBRACE)('{')
|
||||
PsiWhiteSpace('\n\n ')
|
||||
OBJECT_DECLARATION
|
||||
PsiElement(class)('class')
|
||||
MODIFIER_LIST
|
||||
PsiElement(default)('default')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(object)('object')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
class Pair(x : Int, y : Int) {
|
||||
class object {
|
||||
default object {
|
||||
fun copy(from : Pair, x : Int = from.x, y : Int = from.y) = Pair(x, y)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,8 @@ JetFile: UpdateOperation.kt
|
||||
PsiElement(LBRACE)('{')
|
||||
PsiWhiteSpace('\n ')
|
||||
OBJECT_DECLARATION
|
||||
PsiElement(class)('class')
|
||||
MODIFIER_LIST
|
||||
PsiElement(default)('default')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(object)('object')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
Reference in New Issue
Block a user