| switch (a) { |
| case: |
| print a; |
| } |
| ----- |
| Groovy script |
| Switch statement |
| PsiElement(switch)('switch') |
| PsiWhiteSpace(' ') |
| PsiElement(()('(') |
| Reference expression |
| PsiElement(identifier)('a') |
| PsiElement())(')') |
| PsiWhiteSpace(' ') |
| PsiElement({)('{') |
| PsiWhiteSpace('\n ') |
| Case section |
| Case label |
| PsiElement(case)('case') |
| PsiErrorElement:Expression expected |
| <empty list> |
| PsiElement(:)(':') |
| PsiElement(new line)('\n ') |
| Call expression |
| Reference expression |
| PsiElement(identifier)('print') |
| PsiWhiteSpace(' ') |
| Command arguments |
| Reference expression |
| PsiElement(identifier)('a') |
| PsiElement(;)(';') |
| PsiElement(new line)('\n') |
| PsiElement(})('}') |