Remove package prefix from imports

This commit is contained in:
Natalia Ukhorskaya
2013-10-24 20:31:20 +04:00
parent da718af8b7
commit 8bee5628d5
6 changed files with 2 additions and 53 deletions
-1
View File
@@ -1,6 +1,5 @@
package foo.bar.goo
import package.foo
import foo
import foo.bar
import foo as bar
-8
View File
@@ -11,14 +11,6 @@ JetFile: Imports.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('goo')
PsiWhiteSpace('\n\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')
PsiElement(package)('package')
PsiElement(DOT)('.')
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('foo')
PsiWhiteSpace('\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')
-4
View File
@@ -1,9 +1,5 @@
package foo.bar.goo
import package ;
import package.*
import package. ;
import foo as
import foo.
import foo.bar.
-34
View File
@@ -11,40 +11,6 @@ JetFile: Imports_ERR.kt
REFERENCE_EXPRESSION
PsiElement(IDENTIFIER)('goo')
PsiWhiteSpace('\n\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')
PsiElement(package)('package')
PsiErrorElement:Expecting '.'
<empty list>
PsiWhiteSpace(' ')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
<empty list>
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')
PsiElement(package)('package')
PsiElement(DOT)('.')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
<empty list>
PsiErrorElement:Expecting package directive or top level declaration
PsiElement(MUL)('*')
PsiWhiteSpace('\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')
PsiElement(package)('package')
PsiElement(DOT)('.')
PsiWhiteSpace(' ')
REFERENCE_EXPRESSION
PsiErrorElement:Expecting qualified name
<empty list>
PsiElement(SEMICOLON)(';')
PsiWhiteSpace('\n\n')
IMPORT_DIRECTIVE
PsiElement(import)('import')
PsiWhiteSpace(' ')