| Foo(int a) { |
| println(a) |
| } |
| |
| 42 |
| ----- |
| Groovy script |
| Method call |
| Reference expression |
| PsiElement(identifier)('Foo') |
| Arguments |
| PsiElement(()('(') |
| builtin type class expression |
| PsiElement(int)('int') |
| PsiErrorElement:',' or ')' expected |
| <empty list> |
| PsiWhiteSpace(' ') |
| Reference expression |
| PsiElement(identifier)('a') |
| PsiElement())(')') |
| PsiWhiteSpace(' ') |
| Closable block |
| PsiElement({)('{') |
| PsiWhiteSpace('\n ') |
| Parameter list |
| <empty list> |
| Method call |
| Reference expression |
| PsiElement(identifier)('println') |
| Arguments |
| PsiElement(()('(') |
| Reference expression |
| PsiElement(identifier)('a') |
| PsiElement())(')') |
| PsiElement(new line)('\n') |
| PsiElement(})('}') |
| PsiElement(new line)('\n\n') |
| Literal |
| PsiElement(Integer)('42') |