Changed lookup strings and prefix matchers for parameter name&type completion to get more stable and correct ordering

This commit is contained in:
Valentin Kipyatkov
2015-10-08 18:32:30 +03:00
parent 7c39064f75
commit 9b4070b881
51 changed files with 127 additions and 111 deletions
@@ -4,6 +4,6 @@ class MyClassC
fun foo(myCla<caret>)
// ORDER: myClassA
// ORDER: myClassC
// ORDER: myClassB
// ORDER: myClassA: MyClassA
// ORDER: myClassC: MyClassC
// ORDER: myClassB: MyClassB
@@ -8,9 +8,9 @@ fun h(myFileX: String)
fun foo(myFi<caret>)
// ORDER: myFileY
// ORDER: myFileB
// ORDER: myFileX
// ORDER: myFileX
// ORDER: myFileA
// ORDER: myFileC
// ORDER: myFileY: Int
// ORDER: myFileB: MyFileB
// ORDER: myFileX: Int
// ORDER: myFileX: String
// ORDER: myFileA: MyFileA
// ORDER: myFileC: MyFileC
@@ -2,7 +2,7 @@ import ppp.MyClassB
fun foo(myCla<caret>)
// ORDER: myClassB
// ORDER: myClassA
// ORDER: myClassC
// ORDER: myClaaa
// ORDER: myClassB: MyClassB
// ORDER: myClassA: MyClassA
// ORDER: myClassC: MyClassC
// ORDER: myClaaa: MyClaaa
@@ -0,0 +1,5 @@
package other
class SpecificStream
class SimpleStream
@@ -0,0 +1,6 @@
class MyAbsoluteSpecificStream
fun foo(myAbSpeStream<caret>)
// ORDER: myAbsoluteSpecificStream: MyAbsoluteSpecificStream
// ORDER: myAbSpecificStream: SpecificStream
@@ -3,5 +3,5 @@ class MyFileStream
fun foo(myFi<caret>)
// ORDER: myFile
// ORDER: myFileStream
// ORDER: myFile: MyFile
// ORDER: myFileStream: MyFileStream
@@ -3,5 +3,5 @@ class FaOaOa
fun foo(foo<caret>)
// ORDER: fooBar
// ORDER: faOaOa
// ORDER: fooBar: FooBar
// ORDER: faOaOa: FaOaOa
@@ -6,6 +6,6 @@ class Xaa
fun foo(zzzYyyX<caret>)
// ORDER: zzzYyyXxx
// ORDER: YyyXoo
// ORDER: Xaa
// ORDER: zzzYyyXxx: ZzzYyyXxx
// ORDER: zzzYyyXoo: YyyXoo
// ORDER: zzzYyyXaa: Xaa