Sergio Pedri
e698d066a9
Add support for nested record types
2022-04-11 19:10:52 +02:00
Sergio Pedri
f34c0f3b49
Fix generation for nested types that are not classes
2022-04-11 14:28:14 +02:00
Sergio Pedri
3324b5214e
Fix incorrect duplicated property notification call
2022-04-06 18:21:43 +02:00
Sergio Pedri
69707bf3fd
Fix false positive diagnostics for inherited members
2022-04-06 18:08:42 +02:00
Sergio Pedri
e0016b7e0f
Move diagnostics list to shipped release file
2022-04-06 15:14:14 +02:00
Sergio Pedri
f2ac314fd0
Improve [ICommand] overload diagnostics
2022-03-26 13:58:23 +01:00
Sergio Pedri
3ff3d8e8cd
Add diagnostics for [ICommand] on multiple overloads
2022-03-26 13:52:28 +01:00
Sergio Pedri
a045b551d8
Merge pull request #161 from CommunityToolkit/dev/icommand-attribute-task-t
...
Allow Task<T>-returns on methods with [ICommand]
2022-03-25 23:21:20 +01:00
Sergio Pedri
ec1129b54d
Merge pull request #179 from CommunityToolkit/dev/incremental-nullable-generator
...
Make NullabilityAttributesGenerator incremental
2022-03-25 23:20:45 +01:00
Sergio Pedri
8c03ffa93d
Fix NullabilityAttributesGenerator generation conditions
2022-03-25 22:28:53 +01:00
Sergio Pedri
8fba78db76
Simplify AddSource(...) calls
2022-03-25 22:28:53 +01:00
Sergio Pedri
807dbcaf94
Switch NullabilityAttributesGenerator to incremental
2022-03-25 22:28:53 +01:00
Sergio Pedri
a3bafc654e
Add RegisterConditionalSourceOutput API
2022-03-25 22:28:52 +01:00
Sergio Pedri
5a8fd0bf1e
Update [ICommand] generator for Task<T> returns
2022-03-25 22:28:38 +01:00
Sergio Pedri
4bb6067abc
Fix nullability annotations in generated properties
2022-03-25 22:27:18 +01:00
Sergio Pedri
668de52f39
Enable orphaning diagnostics for [AlsoBroadcastChange]
2022-03-16 15:30:03 +01:00
Sergio Pedri
53ac5d8e38
Implement code generation for [AlsoBroadcastChange]
2022-03-16 15:30:03 +01:00
Sergio Pedri
216d4eaaf4
Code refactoring to remove goto-s
2022-03-15 20:00:19 +01:00
Sergio Pedri
eb41f891f8
Add diagnostics for invalid [ObservableRecipient] target type
2022-03-14 00:02:38 +01:00
Sergio Pedri
5cb0a737ff
Fix diagnostics categories
2022-03-13 22:56:32 +01:00
Sergio Pedri
17d4df6555
Add diagnostics for orphaned [ObservableProperty] dependent attributes
2022-03-13 20:07:27 +01:00
Sergio Pedri
e694deff8e
Minor code tweaks
2022-03-13 19:42:10 +01:00
Sergio Pedri
b632429c15
Add diagnostics for invalid [ObservableProperty] containing type
2022-03-13 19:37:15 +01:00
Sergio Pedri
914a7aca26
Add diagnostics for combining [INPC] and [ObservableObject]
2022-03-13 18:39:23 +01:00
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
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
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
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
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
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
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
d4a58e88fb
Fix wrong generator type names in [GeneratedCode]
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
33c58e3eda
Remove try/catch when awaiting tasks, ignore exceptions
...
This allows exceptions to remain unobserved and propagate to TaskScheduler.UnobservedTaskException. It will also be more efficient, as there is no longer an exception being thrown and handled if there's one.
2022-02-28 22:37:26 +01:00