Rename sparam to setparam
This commit is contained in:
@@ -7,7 +7,7 @@ annotation class AnnParam
|
||||
|
||||
public class A(@AnnParam @field:AnnField @property:AnnProp2 val x: Int, @param:AnnParam @get:AnnGetter @set:AnnSetter var y: Int) {
|
||||
|
||||
@AnnProp @field:AnnField @property:AnnProp2 @get:AnnGetter @set:AnnSetter @sparam:AnnParam
|
||||
@AnnProp @field:AnnField @property:AnnProp2 @get:AnnGetter @set:AnnSetter @setparam:AnnParam
|
||||
var p: Int = 0
|
||||
|
||||
}
|
||||
+9
-9
@@ -5,32 +5,32 @@ class CustomDelegate {
|
||||
fun set(thisRef: Any?, prop: PropertyMetadata, value: String) {}
|
||||
}
|
||||
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@sparam:Ann<!>
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@setparam:Ann<!>
|
||||
class SomeClass {
|
||||
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@sparam:Ann<!>
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY, WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET!>@setparam:Ann<!>
|
||||
constructor()
|
||||
|
||||
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@sparam:Ann<!>
|
||||
<!INAPPLICABLE_TARGET_PROPERTY_IMMUTABLE!>@setparam:Ann<!>
|
||||
protected val simpleProperty: String = "text"
|
||||
|
||||
@sparam:Ann
|
||||
@setparam:Ann
|
||||
protected var mutableProperty: String = "text"
|
||||
|
||||
@sparam:[Ann]
|
||||
@setparam:[Ann]
|
||||
protected var mutablePropertyWithAnnotationList: String = "text"
|
||||
|
||||
@sparam:Ann
|
||||
@setparam:Ann
|
||||
protected var delegatedProperty: String by CustomDelegate()
|
||||
|
||||
@sparam:Ann
|
||||
@setparam:Ann
|
||||
var propertyWithCustomSetter: Int
|
||||
get() = 5
|
||||
set(v) {}
|
||||
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@sparam:Ann<!>
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@setparam:Ann<!>
|
||||
fun anotherFun() {
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@sparam:Ann<!>
|
||||
<!INAPPLICABLE_TARGET_ON_PROPERTY!>@setparam:Ann<!>
|
||||
val <!UNUSED_VARIABLE!>localVariable<!> = 5
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -16,14 +16,14 @@ public final class CustomDelegate {
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
@sparam:Ann() public final class SomeClass {
|
||||
@sparam:Ann() public constructor SomeClass()
|
||||
@sparam:Ann() protected final var delegatedProperty: kotlin.String
|
||||
@sparam:Ann() protected final var mutableProperty: kotlin.String
|
||||
@sparam:Ann() protected final var mutablePropertyWithAnnotationList: kotlin.String
|
||||
@sparam:Ann() public final var propertyWithCustomSetter: kotlin.Int
|
||||
@sparam:Ann() protected final val simpleProperty: kotlin.String = "text"
|
||||
@sparam:Ann() public final fun anotherFun(): kotlin.Unit
|
||||
@setparam:Ann() public final class SomeClass {
|
||||
@setparam:Ann() public constructor SomeClass()
|
||||
@setparam:Ann() protected final var delegatedProperty: kotlin.String
|
||||
@setparam:Ann() protected final var mutableProperty: kotlin.String
|
||||
@setparam:Ann() protected final var mutablePropertyWithAnnotationList: kotlin.String
|
||||
@setparam:Ann() public final var propertyWithCustomSetter: kotlin.Int
|
||||
@setparam:Ann() protected final val simpleProperty: kotlin.String = "text"
|
||||
@setparam:Ann() public final fun anotherFun(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
+4
-4
@@ -58,7 +58,7 @@ ref
|
||||
val property
|
||||
val receiver
|
||||
val param
|
||||
val sparam
|
||||
val setparam
|
||||
val lateinit
|
||||
val const
|
||||
get() = a
|
||||
@@ -93,7 +93,7 @@ ref
|
||||
fun property () : property
|
||||
fun receiver () : receiver
|
||||
fun param () : param
|
||||
fun sparam () : sparam
|
||||
fun setparam () : setparam
|
||||
fun lateinit () : lateinit
|
||||
fun const () : const
|
||||
|
||||
@@ -125,7 +125,7 @@ ref
|
||||
property : t,
|
||||
receiver : t,
|
||||
param : t,
|
||||
sparam : t,
|
||||
setparam : t,
|
||||
lateinit : t,
|
||||
const : t,
|
||||
public protected private internal abstract
|
||||
@@ -174,7 +174,7 @@ class F(val foo : bar,
|
||||
property : t,
|
||||
receiver : t,
|
||||
param : t,
|
||||
sparam : t,
|
||||
setparam : t,
|
||||
lateinit : t,
|
||||
const : t,
|
||||
public protected private internal abstract
|
||||
|
||||
+5
-5
@@ -311,7 +311,7 @@ JetFile: SoftKeywords.kt
|
||||
PROPERTY
|
||||
PsiElement(val)('val')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('sparam')
|
||||
PsiElement(IDENTIFIER)('setparam')
|
||||
PsiWhiteSpace('\n ')
|
||||
PROPERTY
|
||||
PsiElement(val)('val')
|
||||
@@ -796,7 +796,7 @@ JetFile: SoftKeywords.kt
|
||||
FUN
|
||||
PsiElement(fun)('fun')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(IDENTIFIER)('sparam')
|
||||
PsiElement(IDENTIFIER)('setparam')
|
||||
PsiWhiteSpace(' ')
|
||||
VALUE_PARAMETER_LIST
|
||||
PsiElement(LPAR)('(')
|
||||
@@ -807,7 +807,7 @@ JetFile: SoftKeywords.kt
|
||||
TYPE_REFERENCE
|
||||
USER_TYPE
|
||||
REFERENCE_EXPRESSION
|
||||
PsiElement(IDENTIFIER)('sparam')
|
||||
PsiElement(IDENTIFIER)('setparam')
|
||||
PsiWhiteSpace('\n ')
|
||||
FUN
|
||||
PsiElement(fun)('fun')
|
||||
@@ -1146,7 +1146,7 @@ JetFile: SoftKeywords.kt
|
||||
PsiElement(COMMA)(',')
|
||||
PsiWhiteSpace('\n ')
|
||||
VALUE_PARAMETER
|
||||
PsiElement(IDENTIFIER)('sparam')
|
||||
PsiElement(IDENTIFIER)('setparam')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(COLON)(':')
|
||||
PsiWhiteSpace(' ')
|
||||
@@ -1543,7 +1543,7 @@ JetFile: SoftKeywords.kt
|
||||
PsiElement(COMMA)(',')
|
||||
PsiWhiteSpace('\n ')
|
||||
VALUE_PARAMETER
|
||||
PsiElement(IDENTIFIER)('sparam')
|
||||
PsiElement(IDENTIFIER)('setparam')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiElement(COLON)(':')
|
||||
PsiWhiteSpace(' ')
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
package boo
|
||||
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
class A
|
||||
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
interface I
|
||||
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
fun a()
|
||||
|
||||
@get:Deprecated
|
||||
@set:Deprecated
|
||||
@sparam:Deprecated
|
||||
@setparam:Deprecated
|
||||
fun b()
|
||||
@@ -25,7 +25,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
@@ -58,7 +58,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
@@ -101,7 +101,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
@@ -140,7 +140,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
@@ -179,7 +179,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
@@ -221,7 +221,7 @@ JetFile: inWrongPlace.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
|
||||
@@ -2,7 +2,7 @@ class A {
|
||||
|
||||
@get:An
|
||||
@set:An
|
||||
@sparam:An
|
||||
@setparam:An
|
||||
var a: String = "A"
|
||||
|
||||
}
|
||||
@@ -38,7 +38,7 @@ JetFile: simple.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ class A {
|
||||
|
||||
@get:a
|
||||
@set:[b c]
|
||||
@sparam:d
|
||||
@setparam:d
|
||||
var a: Int
|
||||
@e get() = 5
|
||||
@f @g set(@h v) {}
|
||||
|
||||
+1
-1
@@ -48,7 +48,7 @@ JetFile: twoAnnotationLists.kt
|
||||
ANNOTATION_ENTRY
|
||||
PsiElement(AT)('@')
|
||||
ANNOTATION_TARGET
|
||||
PsiElement(sparam)('sparam')
|
||||
PsiElement(setparam)('setparam')
|
||||
PsiElement(COLON)(':')
|
||||
CONSTRUCTOR_CALLEE
|
||||
TYPE_REFERENCE
|
||||
|
||||
Reference in New Issue
Block a user