Previously conditional expressions were only allowed in things which
accepted parameters to call accessors, which is most things, but this
was found to be too broad. Many contexts to not actually allow conditional
expressions so this was restricted back to block parameters and variable
calls.
| value:implicit_identifier_tuple\r
| value:variable_identifier_with_alias\r
| value:variable_accessor_call_parameter_value\r
+ | value:conditional_expression\r
;\r
\r
variable_expression\r
=\r
- variable_open type:`variable` name:variable_identifier variable_close\r
+ variable_open type:`variable` name:( conditional_expression | variable_identifier ) variable_close\r
;\r
variable_open\r
=\r
\r
variable_accessor_call_parameter_value\r
=\r
- | conditional_expression\r
- | variable_identifier\r
+ conditional_expression\r
;\r
\r
conditional_expression\r