[Analysis API test] rename AbstractPsiDeclarationProviderSingleModuleTest to AbstractPsiDeclarationProviderSourceTest
^KT-64805
This commit is contained in:
committed by
Space Team
parent
052622b862
commit
79a8b6de1f
@@ -0,0 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box() {
|
||||
"with default".capital<caret>ize()
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:capitalize($this$capitalize: PsiType:String): PsiType:String
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box() {
|
||||
"without default".capital<caret>ize(Locale.US)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:capitalize($this$capitalize: PsiType:String, locale: PsiType:Locale): PsiType:String
|
||||
@@ -0,0 +1,4 @@
|
||||
fun foo() {
|
||||
val li = ArrayList<String>().listIterator()
|
||||
li.<caret>add("test")
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:add(p: PsiType:E): PsiType:void
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box(map: MutableMap<String, String>) {
|
||||
map.g<caret>et("key")
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:get(p: PsiType:Object): PsiType:V
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun box(map: MutableMap<String, String>) {
|
||||
map.get<caret>OrDefault("key", null)
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:getOrDefault($this$getOrDefault: PsiType:Map<? extends K, ? extends V>, key: PsiType:K, defaultValue: PsiType:V): PsiType:V
|
||||
@@ -0,0 +1,25 @@
|
||||
// FILE: main.kt
|
||||
|
||||
package test.pkg
|
||||
|
||||
import test.pkg.ColorSpace.Companion.MaxId
|
||||
import test.pkg.ColorSpace.Companion.Min<caret>Id
|
||||
|
||||
annotation class IntRange(val from: Long, val to: Long)
|
||||
|
||||
private fun isSrgb(
|
||||
@IntRange(from = MinId.toLong(), to = MaxId.toLong()) id: Int
|
||||
): Boolean {
|
||||
return if (id == 0) true else false
|
||||
}
|
||||
|
||||
// FILE: ColorSpace.kt
|
||||
|
||||
package test.pkg
|
||||
|
||||
abstract class ColorSpace {
|
||||
internal companion object {
|
||||
internal const val MinId = -1
|
||||
internal const val MaxId = 63
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
internal const val MinId = -1
|
||||
@@ -0,0 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
fun test() {
|
||||
set<caret>Of("4", "2")
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:setOf(vararg elements: PsiType:T...): PsiType:Set<T>
|
||||
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
annotation class MyAnno
|
||||
|
||||
@<caret>MyAnno
|
||||
class Foo {
|
||||
fun bar(): Int = 42
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
annotation class MyAnno
|
||||
@@ -0,0 +1,8 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
package test.pkg
|
||||
|
||||
class Foo {
|
||||
fun bar() = TO<caret>DO("Not implemented yet")
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Resolved to:
|
||||
PsiMethod:TODO(reason: PsiType:String): PsiType:Void
|
||||
Reference in New Issue
Block a user