| execute({session -> |
| def criteria = 1 |
| foo |
| }) |
| ----- |
| Groovy script |
| Method call |
| Reference expression |
| PsiElement(identifier)('execute') |
| Arguments |
| PsiElement(()('(') |
| Closable block |
| PsiElement({)('{') |
| Parameter list |
| Parameter |
| Modifiers |
| <empty list> |
| PsiElement(identifier)('session') |
| PsiWhiteSpace(' ') |
| PsiElement(->)('->') |
| PsiElement(new line)('\n ') |
| Variable definitions |
| Modifiers |
| PsiElement(def)('def') |
| PsiWhiteSpace(' ') |
| Variable |
| PsiElement(identifier)('criteria') |
| PsiWhiteSpace(' ') |
| PsiElement(=)('=') |
| PsiWhiteSpace(' ') |
| Literal |
| PsiElement(Integer)('1') |
| PsiElement(new line)('\n ') |
| Reference expression |
| PsiElement(identifier)('foo') |
| PsiElement(new line)('\n') |
| PsiElement(})('}') |
| PsiElement())(')') |