Code Insight: Implement package references inside of string literals

#KT-12136 In Progress
This commit is contained in:
Alexey Sedunov
2016-05-23 15:42:56 +03:00
parent d52e62b20d
commit d69140b7fe
15 changed files with 177 additions and 14 deletions
@@ -0,0 +1,11 @@
// ELEMENT: java
// CHAR: \n
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("ja<caret>va"))
open class App {
}
@@ -0,0 +1,11 @@
// ELEMENT: java
// CHAR: \n
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("javava"))
open class App {
}
@@ -0,0 +1,11 @@
// ELEMENT: java
// CHAR: \t
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("ja<caret>va"))
open class App {
}
@@ -0,0 +1,11 @@
// ELEMENT: java
// CHAR: \t
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("java"))
open class App {
}
@@ -0,0 +1,12 @@
// NUMBER: 2
// EXIST: { lookupString:"java" }
// EXIST: { lookupString:"javax" }
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("ja<caret>va"))
open class App {
}
@@ -0,0 +1,11 @@
// NO_XML_CONFIG
// REF: java
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration
@Configuration
@ComponentScan(basePackages = arrayOf("<caret>java"))
open class App {
}