You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's sort of like we're adding two new prefix operators (though the . isn't really a prefix operator). However, there is already a ?. operator and the lexical grammar tokenizes that as a single unit.
This means that if the formatter encounters a shorthand .foo expression inside a null-aware element ? expression, it must preserve a space between the ? and .. We have a similar edge case in the formatter around preserving a space between chained unary - operators like - -a so that it doesn't accidentally turn them into a prefix decrement.
The text was updated successfully, but these errors were encountered:
We're working on two new language features:
These two features can be combined:
It's sort of like we're adding two new prefix operators (though the
.
isn't really a prefix operator). However, there is already a?.
operator and the lexical grammar tokenizes that as a single unit.This means that if the formatter encounters a shorthand
.foo
expression inside a null-aware element?
expression, it must preserve a space between the?
and.
. We have a similar edge case in the formatter around preserving a space between chained unary-
operators like- -a
so that it doesn't accidentally turn them into a prefix decrement.The text was updated successfully, but these errors were encountered: