Analyze Data Flow: Support properties with custom accessors

#KT-11994 In Progress
This commit is contained in:
Alexey Sedunov
2017-05-30 19:40:14 +03:00
parent d61ddaccb6
commit ea7d535ae7
25 changed files with 267 additions and 32 deletions
+8
View File
@@ -0,0 +1,8 @@
// FLOW: OUT
val foo: Int
get() = <caret>0
fun test() {
val x = foo
}
@@ -0,0 +1,3 @@
4 get() = <bold>0</bold>
4 <bold>get() = 0</bold>
7 val <bold>x = foo</bold>
+10
View File
@@ -0,0 +1,10 @@
// FLOW: OUT
val foo: Int
get(): Int {
return <caret>0
}
fun test() {
val x = foo
}
@@ -0,0 +1,3 @@
5 return <bold>0</bold>
4 <bold>get(): Int {</bold>
9 val <bold>x = foo</bold>