| try {foo |
| catch ( Exception1 e1) {} |
| catch ( Exception1 e2) {} |
| finally{ doNothing } |
| ----- |
| Groovy script |
| Try statement |
| PsiElement(try)('try') |
| PsiWhiteSpace(' ') |
| Open block |
| PsiElement({)('{') |
| Reference expression |
| PsiElement(identifier)('foo') |
| PsiElement(new line)('\n') |
| PsiErrorElement:'catch' without 'try' |
| PsiElement(catch)('catch') |
| PsiWhiteSpace(' ') |
| Call expression |
| Parenthesized expression |
| PsiElement(()('(') |
| PsiWhiteSpace(' ') |
| Reference expression |
| PsiElement(identifier)('Exception1') |
| PsiErrorElement:')' expected |
| <empty list> |
| PsiWhiteSpace(' ') |
| Command arguments |
| Reference expression |
| PsiElement(identifier)('e1') |
| PsiErrorElement:';', '}' or new line expected |
| <empty list> |
| PsiElement())(')') |
| PsiWhiteSpace(' ') |
| Closable block |
| PsiElement({)('{') |
| Parameter list |
| <empty list> |
| PsiElement(})('}') |
| PsiElement(new line)('\n') |
| PsiErrorElement:'catch' without 'try' |
| PsiElement(catch)('catch') |
| PsiWhiteSpace(' ') |
| Call expression |
| Parenthesized expression |
| PsiElement(()('(') |
| PsiWhiteSpace(' ') |
| Reference expression |
| PsiElement(identifier)('Exception1') |
| PsiErrorElement:')' expected |
| <empty list> |
| PsiWhiteSpace(' ') |
| Command arguments |
| Reference expression |
| PsiElement(identifier)('e2') |
| PsiErrorElement:';', '}' or new line expected |
| <empty list> |
| PsiElement())(')') |
| PsiWhiteSpace(' ') |
| Closable block |
| PsiElement({)('{') |
| Parameter list |
| <empty list> |
| PsiElement(})('}') |
| PsiElement(new line)('\n') |
| PsiErrorElement:'finally' without 'try' |
| PsiElement(finally)('finally') |
| Closable block |
| PsiElement({)('{') |
| PsiWhiteSpace(' ') |
| Parameter list |
| <empty list> |
| Reference expression |
| PsiElement(identifier)('doNothing') |
| PsiWhiteSpace(' ') |
| PsiElement(})('}') |
| PsiErrorElement:'}' expected |
| <empty list> |
| PsiErrorElement:'catch' or 'finally' expected |
| <empty list> |