| enum A { |
| @Property a |
| } |
| ----- |
| 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 |
| Modifiers |
| Annotation |
| PsiElement(@)('@') |
| Reference element |
| PsiElement(identifier)('Property') |
| Annotation arguments |
| <empty list> |
| PsiWhiteSpace(' ') |
| PsiElement(identifier)('a') |
| PsiElement(new line)('\n') |
| PsiElement(})('}') |