Commit Graph

1968 Commits

Author SHA1 Message Date
Sergio Pedri 0fb8a627fa Minor code refactoring 2022-03-13 18:17:46 +01:00
Sergio Pedri ab6d3007e6 Skip generating properties when there is a name collision 2022-03-13 15:47:11 +01:00
Sergio Pedri 31f5c95603 Improve diagnostics for [ObservableProperty] with invalid validation 2022-03-13 15:15:20 +01:00
Sergio Pedri 840e7a5983 More bug fixes to new diagnostics 2022-03-13 15:15:20 +01:00
Sergio Pedri 0f7dfe632f Add more unit tests for [AlsoNotifyCanExecuteFor] 2022-03-13 15:15:20 +01:00
Sergio Pedri ccb8a9d4ad Fixed bugs in new diagnostics logic 2022-03-13 15:15:20 +01:00
Sergio Pedri 929bef6b6f Fix diagnostics for generated commands 2022-03-13 15:15:20 +01:00
Sergio Pedri 6e497b1ad0 Fix diagnostics for generated properties 2022-03-13 15:15:20 +01:00
Sergio Pedri ce44cffb26 Add diagnostics tests for new diagnostics 2022-03-13 15:15:20 +01:00
Sergio Pedri b66fa4ba22 Add diagnostics for invalid target of [AlsoNotifyCanExecuteFor] 2022-03-13 15:15:20 +01:00
Sergio Pedri 48587bc7ba Add diagnostics for invalid target of [AlsoNotifyChangeFor] 2022-03-13 15:15:20 +01:00
Sergio Pedri 53f9abf098 Add diagnostics for name collision for [ObservableProperty] 2022-03-13 15:15:19 +01:00
Sergio Pedri 2372ea9c44
Update README.md 2022-03-13 04:33:56 +01:00
Sergio Pedri fb5c56ff1e
Merge pull request #139 from CommunityToolkit/dev/fix-command-no-concurrency-can-execute
Fix async relay command CanExecute raised with no concurrency
2022-03-12 01:42:00 +01:00
Sergio Pedri a3c55276a8 Fix async relay command CanExecute raised with no concurrency 2022-03-12 00:44:54 +01:00
Sergio Pedri 4f148cfd66
Merge pull request #131 from CommunityToolkit/dev/remove-can-execute-checks
Remove CanExecute checks from Execute logic
2022-03-09 22:33:27 +01:00
Sergio Pedri 3daad892c1 Fix unit tests 2022-03-09 22:14:51 +01:00
Sergio Pedri 7a4eccbc10 Remove CanExecute checks from Execute logic 2022-03-09 22:14:51 +01:00
Sergio Pedri e1ec425f97
Merge pull request #135 from CommunityToolkit/dev/dynamically-accessed-members-attribute
Add [DynamicallyAccessedMembers] annotations
2022-03-09 22:14:14 +01:00
Sergio Pedri 5fb9f7039c Add unit tests for trimming annotations 2022-03-09 00:13:36 +01:00
Sergio Pedri 7daf7bf7ce
Merge pull request #132 from CommunityToolkit/dev/remove-debugger-non-user-code
Remove [DebuggerNonUserCode] from visible members
2022-03-09 00:05:45 +01:00
Sergio Pedri 1e033f47bb Improve detection of [DynamicallyAccessedMembers] 2022-03-06 19:34:30 +01:00
Sergio Pedri baada1ac70 Update RegisterConditionalImplementationSourceOutput extension 2022-03-06 19:33:30 +01:00
Sergio Pedri 40b492ddf8 Generate [DynamicallyAccessedMembers] for __ObservableValidatorExtensions 2022-03-06 19:29:30 +01:00
Sergio Pedri e78e9c8250 Generate [DynamicallyAccessedMembers] for __IMessengerExtensions 2022-03-06 19:26:02 +01:00
Sergio Pedri c9839ef073 Remove [DebuggerNonUserCode] from visible members 2022-03-06 17:36:35 +01:00
Sergio Pedri fa9114b3ed
Merge pull request #134 from CommunityToolkit/dev/net-native-fix
Remove ArrayPoolBufferWriter<T> explicit constructor
2022-03-06 17:36:07 +01:00
Sergio Pedri 0aa38c5e8a Remove ArrayPoolBufferWriter<T> explicit constructor
This fixes a build error with .NET Native
2022-03-05 20:29:07 +01:00
Sergio Pedri 5cea66b4f8 Fix invalid unit tests 2022-03-02 23:20:57 +01:00
Sergio Pedri 81e99a9199
Merge pull request #128 from CommunityToolkit/dev/cancel-commands
Add cancel command support
2022-03-02 20:49:35 +01:00
Sergio Pedri 89fdd0aab5
Merge pull request #130 from Avid29/main
Fixed typos in Span2D implicit operators
2022-03-02 19:25:32 +01:00
Adam Dernis 94bf93aac8 Fixed typos in Span2D implicit operators 2022-03-02 12:59:01 -05:00
Sergio Pedri 1371da130a Add unit tests for cancel commands 2022-03-02 12:45:38 +01:00
Sergio Pedri 5afbbdf6f8 Improve XML docs for ICommandAttribute.IncludeCancelCommand 2022-03-01 21:35:42 +01:00
Sergio Pedri 86d689c2f9 Update ICommandGenerator to generate cancel commands 2022-03-01 18:59:15 +01:00
Sergio Pedri 63a6676790 Add IncludeCancelCommand option to generator model 2022-03-01 17:22:37 +01:00
Sergio Pedri 8ae1006b4d Add IAsyncRelayCommandExtensions.CreateCancelCommand 2022-03-01 17:08:02 +01:00
Sergio Pedri 3fc61fe03d
Merge pull request #119 from CommunityToolkit/dev/partial-observable-property-methods
[ObservableProperty] generates partial OnPropertyChanging/Changed methods
2022-03-01 13:40:42 +01:00
Sergio Pedri 2689986c98
Merge pull request #120 from CommunityToolkit/dev/fix-messenger-generator-duplicates
Fix IRecipient generator for partial recipient declarations
2022-03-01 13:40:18 +01:00
Sergio Pedri f40eb62717 Add more tests for generated partial methods 2022-03-01 00:17:30 +01:00
Sergio Pedri d4a58e88fb Fix wrong generator type names in [GeneratedCode] 2022-03-01 00:17:30 +01:00
Sergio Pedri 4fb135719f Add unit test for new partial generated methods 2022-03-01 00:17:30 +01:00
Sergio Pedri 07fdeed558 Add invocation of partial generated methods 2022-03-01 00:17:30 +01:00
Sergio Pedri f487d92f87 Add partial generation for OnPropertyChanging/Changed 2022-03-01 00:17:29 +01:00
Sergio Pedri 1a24e0d415 Optimize duplicates removal in IMessengerRegisterAllGenerator 2022-03-01 00:17:15 +01:00
Sergio Pedri 854499580a Improve syntax node filtering in IMessengerRegisterAllGenerator 2022-03-01 00:17:15 +01:00
Sergio Pedri 849a0f14e5 Fix IRecipient generator for partial recipient declarations 2022-03-01 00:17:15 +01:00
Sergio Pedri df3b529a85
Merge pull request #122 from CommunityToolkit/dev/async-command-events-fixup
Fix async command event notifications
2022-03-01 00:16:37 +01:00
Sergio Pedri 9c0a1b36cb Minor bug fixes, add more unit tests 2022-03-01 00:00:52 +01:00
Sergio Pedri c9f5b9fe42 Fix async command event notifications 2022-02-28 23:35:26 +01:00