Migrating BindingTraceContext to a transactional form
This commit is contained in:
@@ -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]
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -45,7 +45,7 @@ constantPattern
|
||||
;
|
||||
|
||||
tuplePattern
|
||||
: "(" ((SimpleName "=")? pattern{","})? ")"
|
||||
: "(" (((SimpleName "=")? pattern){","})? ")"
|
||||
;
|
||||
|
||||
bindingPattern
|
||||
|
||||
Reference in New Issue
Block a user