Skip to content

Raise event#254

Merged
GrahamTheCoder merged 8 commits into
masterfrom
raise-event
Mar 17, 2019
Merged

Raise event#254
GrahamTheCoder merged 8 commits into
masterfrom
raise-event

Conversation

@GrahamTheCoder
Copy link
Copy Markdown
Member

The code and tests used to be tailored based on syntax alone which meant there were lots of false positives and negatives for detecting events. I've changed the code to use the semantic model to inform the conversion, and changed the tests to have valid compiling inputs/outputs.

It generally errs on the side of assuming something isn't an event, which will cause a change in behaviour "for the worse" in some cases that were specifically targeted by the old code. It's hard enough to get the right conversion when all information is available, so I'd rather focus on that, then make very explicit separate handling for cases of incomplete information that are only triggered when the semantic model comes up empty. Those cases will be prioritized based on user requests.

Still need to do converter for Foo?.Invoke
And for general case of switching to say FooEvent rather than Foo (unless actually raising an event)
Now need to do special case for RaiseEvent Blah and RaiseEvent Me.Blah
@GrahamTheCoder GrahamTheCoder merged commit 1f4b391 into master Mar 17, 2019
@GrahamTheCoder GrahamTheCoder deleted the raise-event branch March 17, 2019 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant