Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "Generate Event Handler" on event callbacks (ie ValueChanged and friends) #11347

Merged

Conversation

davidwengier
Copy link
Contributor

Fixes #9730
Fixes #10704

Commit at a time might be easier, depending on how well GitHub handlers the diff

@davidwengier davidwengier requested a review from a team as a code owner January 2, 2025 23:25
Copy link
Contributor

@ryzngard ryzngard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GH handled this diff pretty well

}

// TypeName is something like "EventCallback<System.String>", so we need to parse out the parameter type.
if (ComponentAttributeIntermediateNode.TryGetEventCallbackArgument(attribute.TypeName.AsMemory(), out var argument))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(not related to this pr)

me: Why is this memory?

also me: ohh... why does that function take memory instead of a span?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compiler team: Chasing perf at all costs!
Tooling team: .ToString() all the things, and then serialize them to Json just in case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants