mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
[java] more module parser tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
PsiJavaFile:Name3.java
|
||||
PsiJavaModule:.A
|
||||
PsiKeyword:module('module')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaModuleReference
|
||||
PsiErrorElement:Identifier expected
|
||||
<empty list>
|
||||
PsiJavaToken:DOT('.')
|
||||
PsiIdentifier:A('A')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:LBRACE('{')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiJavaToken:RBRACE('}')
|
||||
@@ -30,6 +30,7 @@ public class ModuleParserTest extends JavaParsingTestCase {
|
||||
public void testName0() { doParserTest("module A. { }"); }
|
||||
public void testName1() { doParserTest("module A..B { }"); }
|
||||
public void testName2() { doParserTest("module A B { }"); }
|
||||
public void testName3() { doParserTest("module .A { }"); }
|
||||
|
||||
public void testIncomplete0() { doParserTest("module"); }
|
||||
public void testIncomplete1() { doParserTest("module X"); }
|
||||
|
||||
Reference in New Issue
Block a user