| while (a==1) |
| import a.b.c |
| ----- |
| Groovy script |
| WHILE statement |
| PsiElement(while)('while') |
| PsiWhiteSpace(' ') |
| PsiElement(()('(') |
| Relational expression |
| Reference expression |
| PsiElement(identifier)('a') |
| PsiElement(==)('==') |
| Literal |
| PsiElement(Integer)('1') |
| PsiElement())(')') |
| PsiElement(new line)('\n') |
| PsiErrorElement:Imports are not allowed inside blocks |
| Import statement |
| Modifiers |
| <empty list> |
| PsiElement(import)('import') |
| PsiWhiteSpace(' ') |
| Reference element |
| Reference element |
| Reference element |
| PsiElement(identifier)('a') |
| PsiElement(.)('.') |
| PsiElement(identifier)('b') |
| PsiElement(.)('.') |
| PsiElement(identifier)('c') |