Implement parsing of desctructuring declarations in lambdas

#KT-5828 In Progress
This commit is contained in:
Denis Zharkov
2016-09-15 11:39:11 +03:00
parent 000ba33f59
commit 75a51d915f
10 changed files with 673 additions and 391 deletions
+6 -1
View File
@@ -254,7 +254,12 @@ jump
// one can use "it" as a parameter name
functionLiteral
: "{" statements "}"
: "{" (modifiers SimpleName (":" type)?){","} "->" statements "}"
: "{" lambdaParameter{","} "->" statements "}"
;
lambdaParameter
: variableDeclarationEntry
: multipleVariableDeclarations (":" type)?
;
statements