New Java parser (static import reference parsing fixed)

This commit is contained in:
Roman Shevchenko
2010-08-10 16:27:23 +04:00
parent 5bac84751f
commit 9b3d3c88ab
3 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
PsiJavaFile:UnclosedImport3.java
PsiImportList
PsiImportStaticStatement
PsiKeyword:import('import')
PsiWhiteSpace(' ')
PsiKeyword:static('static')
PsiWhiteSpace(' ')
PsiImportStaticReferenceElement:a
PsiIdentifier:a('a')
PsiErrorElement:';' expected
<empty list>

View File

@@ -39,6 +39,7 @@ public class FileParserTest extends JavaParsingTestCase {
public void testUnclosedImport0() { doParserTest("import"); }
public void testUnclosedImport1() { doParserTest("import java.awt.*"); }
public void testUnclosedImport2() { doParserTest("import java.awt."); }
public void testUnclosedImport3() { doParserTest("import static a"); }
public void testFileWithClass() { doParserTest("package a;\n" +
"import b;\n" +