[java] Fix tests with ExplicitConstructorInvocations
This commit is contained in:
@ -1524,8 +1524,12 @@ private void ConstructorBlock() #Block:
|
||||
{}
|
||||
{
|
||||
"{" { tokenContexts.push(TokenContext.BLOCK); }
|
||||
( LOOKAHEAD(2) BlockStatement() )*
|
||||
[ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ]
|
||||
(
|
||||
LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation()
|
||||
|
|
||||
( LOOKAHEAD(2) BlockStatement() )*
|
||||
[ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ]
|
||||
)
|
||||
( BlockStatement() )*
|
||||
"}" { tokenContexts.pop(); }
|
||||
}
|
||||
|
@ -17,7 +17,8 @@ import org.junit.platform.suite.api.Suite;
|
||||
Java17TreeDumpTest.class,
|
||||
Java21TreeDumpTest.class,
|
||||
Java21PreviewTreeDumpTest.class,
|
||||
Java22TreeDumpTest.class
|
||||
Java22TreeDumpTest.class,
|
||||
Java22PreviewTreeDumpTest.class
|
||||
})
|
||||
class AllJavaAstTreeDumpTest {
|
||||
|
||||
|
Reference in New Issue
Block a user