forked from phoedos/pmd
annotation before package could not be parsed
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4754 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -1057,7 +1057,7 @@ TOKEN :
|
||||
ASTCompilationUnit CompilationUnit() :
|
||||
{}
|
||||
{
|
||||
[ PackageDeclaration() ]
|
||||
[ LOOKAHEAD( ( Annotation() )* "package" ) PackageDeclaration() ]
|
||||
( ImportDeclaration() )*
|
||||
( TypeDeclaration() )*
|
||||
( < "\u001a" > )?
|
||||
@ -1071,7 +1071,7 @@ ASTCompilationUnit CompilationUnit() :
|
||||
void PackageDeclaration() :
|
||||
{}
|
||||
{
|
||||
"package" Name() ";"
|
||||
( Annotation() )* "package" Name() ";"
|
||||
}
|
||||
|
||||
void ImportDeclaration() :
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user