Migrating BindingTraceContext to a transactional form

This commit is contained in:
Andrey Breslav
2011-08-17 21:21:44 +04:00
parent 9ebffafd89
commit a2b779fcd0
23 changed files with 1271 additions and 290 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ parameter
;
object
: "object" SimpleName ":" delegationSpecifier{","}? classBody? // Class body can be optional: this is a declaration
: "object" SimpleName (":" delegationSpecifier{","})? classBody? // Class body can be optional: this is a declaration
/**
bq. See [Object expressions and Declarations]
*/
+1 -1
View File
@@ -235,7 +235,7 @@ jump
// Ambiguity when after a SimpleName (infix call). In this case (e) is treated as an expression in parentheses
// to put a tuple, write write ((e))
tupleLiteral
: "(" ((SimpleName "=")? expression){","} ")"
: "(" (((SimpleName "=")? expression){","})? ")"
;
// one can use "it" as a parameter name
+1 -1
View File
@@ -45,7 +45,7 @@ constantPattern
;
tuplePattern
: "(" ((SimpleName "=")? pattern{","})? ")"
: "(" (((SimpleName "=")? pattern){","})? ")"
;
bindingPattern