I discovered this bug while investigating #27421.
Essentially, an expression like myProperty?.myMethod()
should have an identical AST string representation; whereas, the current AST string representation is myProperty.myMethod()
without the ?
.
The above applies specifically to MethodReference
, but the same holds true for PropertyOrFieldReference
.