Control-Flow Analysis: Reuse pseudo-value information for unused expression analysis

This commit is contained in:
Alexey Sedunov
2014-07-25 14:52:15 +04:00
parent 2a19016d58
commit 9cbcabffa4
55 changed files with 239 additions and 190 deletions
@@ -0,0 +1,23 @@
fun foo() {
}
class A {
fun foo() {
}
class B
}
fun A.bar() {
}
fun test() {
<!UNUSED_EXPRESSION!>::foo<!>
<!UNUSED_EXPRESSION!>::A<!>
<!UNUSED_EXPRESSION!>A::B<!>
<!UNUSED_EXPRESSION!>A::foo<!>
<!UNUSED_EXPRESSION!>A::bar<!>
}