mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[tests] more intricate 'yield' parsing test (IDEA-CR-48635)
GitOrigin-RevId: b93ae0b8d70520d176684e6c67c2a1193b884a85
This commit is contained in:
committed by
intellij-monorepo-bot
parent
bcc4505751
commit
d93790949c
@@ -2,8 +2,8 @@ PsiJavaFile:Yield.java
|
||||
PsiYieldStatement
|
||||
PsiJavaToken:YIELD('yield')
|
||||
PsiWhiteSpace(' ')
|
||||
PsiReferenceExpression:x
|
||||
PsiReferenceExpression:yield
|
||||
PsiReferenceParameterList
|
||||
<empty list>
|
||||
PsiIdentifier:x('x')
|
||||
PsiIdentifier:yield('yield')
|
||||
PsiJavaToken:SEMICOLON(';')
|
||||
@@ -30,7 +30,7 @@ public class StatementParserTest extends JavaParsingTestCase {
|
||||
public void testBreakIncomplete() { doParserTest("break"); }
|
||||
public void testBreakExpr() { doParserTest("break boo();"); }
|
||||
|
||||
public void testYield() { doParserTest("yield x;"); }
|
||||
public void testYield() { doParserTest("yield yield;"); }
|
||||
public void testYieldNested() { doParserTest("yield switch (0) { default: yield 42; };"); }
|
||||
public void testYieldIncomplete0() { doParserTest("yield "); }
|
||||
public void testYieldIncomplete1() { doParserTest("yield x"); }
|
||||
|
||||
Reference in New Issue
Block a user