roslyn icon indicating copy to clipboard operation
roslyn copied to clipboard

Improve parser recovery around nullable types in patterns

Open DoctorKrolic opened this issue 1 year ago • 15 comments

Closes: https://github.com/dotnet/roslyn/issues/72720

DoctorKrolic avatar Mar 29 '24 17:03 DoctorKrolic

Done with pass. Overall approve of the high level idea. Def wary of the actual code change (i don't understand it yet), and def think we need to beef up tests to ensure that things that are now legal to parse give proper diagnostics.

CyrusNajmabadi avatar Mar 29 '24 18:03 CyrusNajmabadi

@CyrusNajmabadi PTAL

DoctorKrolic avatar Apr 02 '24 16:04 DoctorKrolic

Done with pass.

CyrusNajmabadi avatar Apr 02 '24 19:04 CyrusNajmabadi

@CyrusNajmabadi PTAL

DoctorKrolic avatar Apr 16 '24 18:04 DoctorKrolic

canyou ping me in a couple of days? Thnaks.

CyrusNajmabadi avatar Apr 16 '24 19:04 CyrusNajmabadi

@CyrusNajmabadi A few days has passed, would like your review here :)

DoctorKrolic avatar Apr 19 '24 04:04 DoctorKrolic

@CyrusNajmabadi I am still patiently waiting for your review here 🙂

DoctorKrolic avatar Apr 19 '24 19:04 DoctorKrolic

Ok. Pushed. I'm also ok changing the await-handling and updating the tests accordingly. Are you ok with me doing that, or would you prefer to do that?

CyrusNajmabadi avatar May 05 '24 17:05 CyrusNajmabadi

Are you ok with me doing that, or would you prefer to do that?

Go ahead. Just add a simple comment to changed tests, so it is obvious, that it is an intentional "degradation"

DoctorKrolic avatar May 05 '24 17:05 DoctorKrolic

Will do.

CyrusNajmabadi avatar May 05 '24 19:05 CyrusNajmabadi

lgtm. @dotnet/roslyn-compiler for reviews please.

CyrusNajmabadi avatar May 05 '24 19:05 CyrusNajmabadi

@333fred Can I have a review here?

DoctorKrolic avatar Jun 12 '24 20:06 DoctorKrolic

@333fred I noticed that there was a regression of parsing an async simple lambda in a conditional expression after pattern. Need another look from you yo approve the change

DoctorKrolic avatar Jun 15 '24 07:06 DoctorKrolic

@RikkiGibson You self-assigned here, can you please take a look then?

DoctorKrolic avatar Jul 04 '24 19:07 DoctorKrolic

Thanks @DoctorKrolic!

RikkiGibson avatar Jul 08 '24 21:07 RikkiGibson