Use index to get symbols from importing scopes
This commit is contained in:
committed by
Ilya Kirillov
parent
cefecdef25
commit
2eb439899e
+6
@@ -0,0 +1,6 @@
|
||||
fun usage() {
|
||||
val a = <caret>
|
||||
}
|
||||
|
||||
// EXIST: listOf
|
||||
// EXIST: setOf
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
fun test(a: Int, b: Int) {
|
||||
<caret>
|
||||
}
|
||||
|
||||
// EXIST: a
|
||||
// EXIST: b
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
fun usage() {
|
||||
val a = "10".toIntOrNull()
|
||||
|
||||
a?.<caret>
|
||||
}
|
||||
|
||||
// EXIST: toString
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
fun usage() {
|
||||
"".<caret>
|
||||
}
|
||||
|
||||
// EXIST: length
|
||||
// EXIST: get
|
||||
+20
@@ -2252,6 +2252,11 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultKotlinImports.kt")
|
||||
public void testDefaultKotlinImports() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverCompletion.kt")
|
||||
public void testExplicitReceiverCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt");
|
||||
@@ -2282,6 +2287,11 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("insideFunctionWithParameters.kt")
|
||||
public void testInsideFunctionWithParameters() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVariablesAndFunctions.kt")
|
||||
public void testLocalVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt");
|
||||
@@ -2292,11 +2302,21 @@ public class JSBasicCompletionTestGenerated extends AbstractJSBasicCompletionTes
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableCompletion.kt")
|
||||
public void testNullableCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCast.kt")
|
||||
public void testSmartCast() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringCompletion.kt")
|
||||
public void testStringCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVariablesAndFunctions.kt")
|
||||
public void testTopLevelVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelVariablesAndFunctions.kt");
|
||||
|
||||
+20
@@ -2252,6 +2252,11 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/classFieldsAndFunctionsFromInnerClassExplicitReceiver.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("defaultKotlinImports.kt")
|
||||
public void testDefaultKotlinImports() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/defaultKotlinImports.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("explicitReceiverCompletion.kt")
|
||||
public void testExplicitReceiverCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/explicitReceiverCompletion.kt");
|
||||
@@ -2282,6 +2287,11 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/implicitReceiverFromExtensionMethod.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("insideFunctionWithParameters.kt")
|
||||
public void testInsideFunctionWithParameters() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/insideFunctionWithParameters.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("localVariablesAndFunctions.kt")
|
||||
public void testLocalVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctions.kt");
|
||||
@@ -2292,11 +2302,21 @@ public class JvmBasicCompletionTestGenerated extends AbstractJvmBasicCompletionT
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/localVariablesAndFunctionsFromNestedScope.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("nullableCompletion.kt")
|
||||
public void testNullableCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/nullableCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("smartCast.kt")
|
||||
public void testSmartCast() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/smartCast.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("stringCompletion.kt")
|
||||
public void testStringCompletion() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/stringCompletion.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("topLevelVariablesAndFunctions.kt")
|
||||
public void testTopLevelVariablesAndFunctions() throws Exception {
|
||||
runTest("idea/idea-completion/testData/basic/common/primitiveCompletion/topLevelVariablesAndFunctions.kt");
|
||||
|
||||
Reference in New Issue
Block a user