Fix Android extensions property usage highlighting

#KT-10736 Fixed
This commit is contained in:
Vyacheslav Gerasimov
2017-06-13 15:27:43 +03:00
parent f8617f6676
commit f51e3ab90c
7 changed files with 206 additions and 0 deletions
@@ -0,0 +1,10 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</FrameLayout>
@@ -0,0 +1,33 @@
package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.main.layout.*
class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
<info descr="null"><caret>login</info>.setOnClickListener {
}
<info descr="null">login</info>.text = "Login"
val login = "Login"
val login42 = login + "42"
}
fun foo(): String {
val login = "Login"
return login + "42"
}
}
class AnotherActivity : Activity() {
private val login: String = "login"
fun test() {
login.length
(this as Activity).<info descr="null">login</info>.text = "login"
}
}