Replace get() and set() to getValue() and setValue() (property delegates)

This commit is contained in:
Yan Zhulanow
2015-10-05 20:18:58 +03:00
parent 2fee9d362c
commit 1f2b4e20fe
295 changed files with 718 additions and 511 deletions
@@ -18,11 +18,11 @@ package foo.bar
}
/*p:foo.bar*/val x1 by /*p:foo.bar c:foo.bar.D1(get) c:foo.bar.D1(propertyDelegated) p:foo.bar(propertyDelegated)*/D1()
/*p:foo.bar*/var y1 by /*p:foo.bar c:foo.bar.D1(get) c:foo.bar.D1(set) p:foo.bar(set) c:foo.bar.D1(propertyDelegated) p:foo.bar(propertyDelegated)*/D1()
/*p:foo.bar*/val x1 by /*p:foo.bar c:foo.bar.D1(getValue) p:foo.bar(getValue) c:foo.bar.D1(get) c:foo.bar.D1(propertyDelegated) p:foo.bar(propertyDelegated)*/D1()
/*p:foo.bar*/var y1 by /*p:foo.bar c:foo.bar.D1(getValue) p:foo.bar(getValue) c:foo.bar.D1(get) c:foo.bar.D1(setValue) p:foo.bar(setValue) c:foo.bar.D1(set) p:foo.bar(set) c:foo.bar.D1(propertyDelegated) p:foo.bar(propertyDelegated)*/D1()
/*p:foo.bar*/val x2 by /*p:foo.bar c:foo.bar.D2(get) p:foo.bar(get) c:foo.bar.D2(propertyDelegated) p:foo.bar(propertyDelegated)*/D2()
/*p:foo.bar*/var y2 by /*p:foo.bar c:foo.bar.D2(get) p:foo.bar(get) c:foo.bar.D2(set) c:foo.bar.D2(propertyDelegated) p:foo.bar(propertyDelegated)*/D2()
/*p:foo.bar*/val x2 by /*p:foo.bar c:foo.bar.D2(getValue) p:foo.bar(getValue) c:foo.bar.D2(get) p:foo.bar(get) c:foo.bar.D2(propertyDelegated) p:foo.bar(propertyDelegated)*/D2()
/*p:foo.bar*/var y2 by /*p:foo.bar c:foo.bar.D2(getValue) p:foo.bar(getValue) c:foo.bar.D2(get) p:foo.bar(get) c:foo.bar.D2(setValue) p:foo.bar(setValue) c:foo.bar.D2(set) c:foo.bar.D2(propertyDelegated) p:foo.bar(propertyDelegated)*/D2()
/*p:foo.bar*/val x3 by /*p:foo.bar c:foo.bar.D3(get) p:foo.bar(get) c:foo.bar.D3(propertyDelegated)*/D3()
/*p:foo.bar*/var y3 by /*p:foo.bar c:foo.bar.D3(get) p:foo.bar(get) c:foo.bar.D3(set) c:foo.bar.D3(propertyDelegated)*/D3()
/*p:foo.bar*/val x3 by /*p:foo.bar c:foo.bar.D3(getValue) p:foo.bar(getValue) c:foo.bar.D3(get) p:foo.bar(get) c:foo.bar.D3(propertyDelegated)*/D3()
/*p:foo.bar*/var y3 by /*p:foo.bar c:foo.bar.D3(getValue) p:foo.bar(getValue) c:foo.bar.D3(get) p:foo.bar(get) c:foo.bar.D3(setValue) p:foo.bar(setValue) c:foo.bar.D3(set) c:foo.bar.D3(propertyDelegated)*/D3()
@@ -1,5 +1,5 @@
package inline
inline fun Inline.get(receiver: Any?, prop: PropertyMetadata): Int {
inline fun Inline.getValue(receiver: Any?, prop: PropertyMetadata): Int {
return 0
}
@@ -1,5 +1,5 @@
package inline
inline fun Inline.get(receiver: Any?, prop: PropertyMetadata): Int {
inline fun Inline.getValue(receiver: Any?, prop: PropertyMetadata): Int {
return 1
}
@@ -1,5 +1,5 @@
package inline
inline fun Inline.set(receiver: Any?, prop: PropertyMetadata, value: Int) {
inline fun Inline.setValue(receiver: Any?, prop: PropertyMetadata, value: Int) {
println(value)
}
@@ -1,5 +1,5 @@
package inline
inline fun Inline.set(receiver: Any?, prop: PropertyMetadata, value: Int) {
inline fun Inline.setValue(receiver: Any?, prop: PropertyMetadata, value: Int) {
println(value * 2)
}
@@ -1,11 +1,11 @@
package inline
class Inline {
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
inline fun getValue(receiver: Any?, prop: PropertyMetadata): Int {
return 0
}
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
inline fun setValue(receiver: Any?, prop: PropertyMetadata, value: Int) {
println(value)
}
}
@@ -1,11 +1,11 @@
package inline
class Inline {
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
inline fun getValue(receiver: Any?, prop: PropertyMetadata): Int {
return 1
}
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
inline fun setValue(receiver: Any?, prop: PropertyMetadata, value: Int) {
println(value)
}
}
@@ -1,11 +1,11 @@
package inline
class Inline {
inline fun get(receiver: Any?, prop: PropertyMetadata): Int {
inline fun getValue(receiver: Any?, prop: PropertyMetadata): Int {
return 1
}
inline fun set(receiver: Any?, prop: PropertyMetadata, value: Int) {
inline fun setValue(receiver: Any?, prop: PropertyMetadata, value: Int) {
println(value * 2)
}
}