-
Notifications
You must be signed in to change notification settings - Fork 468
Extend BindableProperty source gen to handle partial property initializers #2987
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
Merged
TheCodeTraveler
merged 28 commits into
CommunityToolkit:main
from
stephenquan:feature/bp-sourcegen-init
Dec 9, 2025
Merged
Changes from 7 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
57877ec
Extend BindableProperty source gen to handle partial property initial…
stephenquan a9085ef
Update CommonUsageTests.cs
TheCodeTraveler fba8b25
Only implement new initializer code for when initializers are present
stephenquan fd700dc
Revert IntegrationTests
stephenquan b2dc373
Revert setter accessibility changes
stephenquan 30fabbd
Merge branch 'feature/bp-sourcegen-init' of github.com:stephenquan/Ma…
stephenquan 6ddcd78
Corrected setter
stephenquan c4bda26
Refactor GetDefaultValueCreatorMethod. Update XML Doc. Apply to reado…
stephenquan 06dd458
Include global root namespace for BindableObject
stephenquan 825adf8
Corrected typo in GetDefautValueCreatorMethodName
stephenquan 1727770
Revert initializer-setter changes (not needed). Refactor getter-initi…
stephenquan 9d785b6
Remove unneeded test from BindablePropertyModelTests
stephenquan 8c823de
Refctor EffectiveDefaultValueCreatorMethodName property (replacing Ge…
stephenquan ebab9e1
Update BindablePropertyName_WithInitializer_ReturnsCorrectEffectiveDe…
stephenquan c80418c
Corrected unit test name GenerateBindableProperty_WithInitializer_Gen…
stephenquan 0aed7ad
Refactor InitializingPropertyName property
stephenquan 1ba82b4
Add Edge Case Test `GenerateBindableProperty_WithBothInitializerAndDe…
TheCodeTraveler 50b229b
Merge branch 'main' into feature/bp-sourcegen-init
TheCodeTraveler 1ce2b6a
Merge branch 'main' into pr/2987
TheCodeTraveler 07d0087
Use `"null"` instead of `string.IsNullOrEmpty()`
TheCodeTraveler 45adcdf
Merge branch 'feature/bp-sourcegen-init' of https://github.com/stephe…
TheCodeTraveler 3a642d0
Remove `DefaultValue`
TheCodeTraveler 77b3fa5
Move out-of-scope variables to `file static class`
TheCodeTraveler fc82b82
Use raw string literal
TheCodeTraveler 4060d68
Update variable name
TheCodeTraveler a382be9
Implement `[BindableProperty]` for `AvatarView`
TheCodeTraveler a7ad7bc
Include class name in `file static class`
TheCodeTraveler ead0fea
Use `[BindableProperty]` for AvatarView
TheCodeTraveler File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.