| enum A { |
| CONST1 |
| , CONST2 |
| } |
| ----- |
| Groovy script |
| Enumeration definition |
| Modifiers |
| <empty list> |
| PsiElement(enum)('enum') |
| PsiWhiteSpace(' ') |
| PsiElement(identifier)('A') |
| Implements clause |
| <empty list> |
| PsiWhiteSpace(' ') |
| Type definition body |
| PsiElement({)('{') |
| PsiWhiteSpace('\n ') |
| Enumeration constants |
| Enumeration constant |
| PsiElement(identifier)('CONST1') |
| PsiElement(new line)('\n ') |
| PsiElement(,)(',') |
| PsiWhiteSpace(' ') |
| Enumeration constant |
| PsiElement(identifier)('CONST2') |
| PsiElement(new line)('\n') |
| PsiElement(})('}') |