Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experimental feature to show properties in completion after prefix wi…
…th "get" or "set"
- Loading branch information
1 parent
23dca52
commit a4c9aa4
Showing
8 changed files
with
93 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
idea/idea-completion/testData/basic/common/GetPrefixForProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
class C : Thread() { | ||
val property1: Int = 0 | ||
var property2: Int = 0 | ||
var xxx: Int = 0 | ||
|
||
fun getPPP() = 1 | ||
} | ||
|
||
fun foo(c: C) { | ||
c.getP<caret> | ||
} | ||
|
||
// EXIST: property1 | ||
// EXIST: property2 | ||
// EXIST: getPPP | ||
// EXIST_JAVA_ONLY: priority | ||
// ABSENT: getPriority | ||
// ABSENT: xxx |
16 changes: 16 additions & 0 deletions
16
idea/idea-completion/testData/basic/common/SetPrefixForProperties.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
class C { | ||
val property1: Int = 0 | ||
var property2: Int = 0 | ||
var xxx: Int = 0 | ||
|
||
fun setPPP(){} | ||
} | ||
|
||
fun foo(c: C) { | ||
c.setP<caret> | ||
} | ||
|
||
// ABSENT: property1 | ||
// EXIST: property2 | ||
// EXIST: setPPP | ||
// ABSENT: xxx |
5 changes: 0 additions & 5 deletions
5
idea/idea-completion/testData/basic/common/extensions/ShowGetMethodWhenNothingElseMatch.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters