Fix Android extensions property usage highlighting
#KT-10736 Fixed
This commit is contained in:
+10
@@ -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>
|
||||
+33
@@ -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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user