mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 22:09:38 +07:00
New Java parser (static import reference parsing fixed)
This commit is contained in:
@@ -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>
|
||||
@@ -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" +
|
||||
|
||||
Reference in New Issue
Block a user