Uh oh!
There was an error while loading. Please reload this page.
Make the EventSource generator incremental et.al. - #64579
Conversation
ghost
commented
Jan 31, 2022
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti, @safern Issue DetailsThe Fixes #64563. c.c. @danmoseley
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
410e3d9 to
a306b12CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
teo-tsirpanis
commented
Feb 7, 2022
I updated the generator to only use the semantic model provided by Can you review it again? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
chsienki
left a comment
There was a problem hiding this comment.
You'll want to implement IEquatable<> on the EventSourceClass to ensure you don't do duplicate work unnecessarily, but otherwise LGTM.
Uh oh!
There was an error while loading. Please reload this page.
sharwell
left a comment
There was a problem hiding this comment.
This approach is much better! So glad to see the compilation issue resolved 👍
Uh oh!
There was an error while loading. Please reload this page.
The problematic compilation-ignoring comparer has been eliminated in favor of clean data extraction.
teo-tsirpanis
commented
Feb 8, 2022
All PR feedback was addressed. For the record, source generators (especially the incremental ones) are awesome. |
tommcdon
commented
Mar 7, 2022
tommcdon
commented
Mar 14, 2022
@stephentoub@noahfalk@hoyosjs just a friendly ping, any concerns with moving forward with this change? |
Uh oh!
There was an error while loading. Please reload this page.
noahfalk
left a comment
There was a problem hiding this comment.
I only skimmed, but LGTM. Thanks!
danmoseley
commented
Mar 17, 2022
Is this good to merge now? |
chsienki
commented
Mar 17, 2022
@danmoseley Looks good from the compiler side, modulo the revert of |
teo-tsirpanis
commented
Mar 17, 2022
OK, I reverted to |
danmoseley
commented
Mar 17, 2022
teo-tsirpanis
commented
Mar 17, 2022
Build what? Oh crap, I had built it from VS and it worked. I will take a look soon. 😥 |
The code was significantly shrunk.
Not actually needed, and reduces indentation.
Make EventSourceClass a record, use method groups instead of lambdas, and rename a parameter.
ebd8b7b to
ba0f865Compareteo-tsirpanis
commented
Mar 17, 2022
Turns out #66434 changed the location of |
ba0f865 to
ee127b9Compareteo-tsirpanis
commented
Mar 18, 2022
Ahhh, what went wrong this time? @chsienki I removed |
noahfalk
commented
Mar 18, 2022
danmoseley
commented
Mar 18, 2022
Thanks @teo-tsirpanis ! |
teo-tsirpanis
commented
Mar 18, 2022
BTW are you still on vacation @noahfalk? Perhaps you forgot to clear your GitHub profile status. |
noahfalk
commented
Mar 19, 2022
nope I've been back a good while, thanks for the heads up : ) |
The
EventSourcegenerator was made incremental and its output is marked as auto-generated. (TIL GitHub doesn't let me reopen a PR if I have force-pushed its branch)Fixes#64563.
c.c. @danmoseley