blob: 5451fc236f56ed6109fb307a9b5afeacee88cb82 [file] [log] [blame]
def (String s, b, int c) = [1, 2, 3]
-----
Groovy script
Variable definitions
Modifiers
PsiElement(def)('def')
PsiWhiteSpace(' ')
PsiElement(()('(')
Type element
Reference element
PsiElement(identifier)('String')
PsiWhiteSpace(' ')
Variable
PsiElement(identifier)('s')
PsiElement(,)(',')
PsiWhiteSpace(' ')
Variable
PsiElement(identifier)('b')
PsiElement(,)(',')
PsiWhiteSpace(' ')
Built in type
PsiElement(int)('int')
PsiWhiteSpace(' ')
Variable
PsiElement(identifier)('c')
PsiElement())(')')
PsiWhiteSpace(' ')
PsiElement(=)('=')
PsiWhiteSpace(' ')
Generalized list
PsiElement([)('[')
Literal
PsiElement(Integer)('1')
PsiElement(,)(',')
PsiWhiteSpace(' ')
Literal
PsiElement(Integer)('2')
PsiElement(,)(',')
PsiWhiteSpace(' ')
Literal
PsiElement(Integer)('3')
PsiElement(])(']')