FIR IDE: add Java synthetic properties support for completion

This commit is contained in:
Ilya Kirillov
2020-12-10 19:40:38 +01:00
parent 48b7150566
commit a0651cdba7
7 changed files with 49 additions and 6 deletions
@@ -0,0 +1,8 @@
// FIR_COMPARISON
fun foo(a: java.lang.Thread) {
a.na<caret>
}
// EXIST: {"lookupString":"name","tailText":" (from getName()/setName())","allLookupStrings":"getName, name, setName","itemText":"name"}
@@ -1,3 +1,5 @@
// FIR_COMPARISON
import java.io.File
fun foo(file: File) {
@@ -1,3 +1,5 @@
// FIR_COMPARISON
import java.io.File
fun foo(file: File) {
@@ -2950,6 +2950,11 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
runTest("idea/idea-completion/testData/basic/java/JavaPackage.kt");
}
@TestMetadata("JavaSyntheticProperty.kt")
public void testJavaSyntheticProperty() throws Exception {
runTest("idea/idea-completion/testData/basic/java/JavaSyntheticProperty.kt");
}
@TestMetadata("KProperty.kt")
public void testKProperty() throws Exception {
runTest("idea/idea-completion/testData/basic/java/KProperty.kt");