Commit Graph
2284 Commits
Author SHA1 Message Date
Sergio Pedri d299dfdbdc Merge pull request #258 from CommunityToolkit/dev/fix-observableproperty-inherited-canexecute
Fix [ICommand] CanExecute with inherited generated property
2022-05-24 10:42:36 -07:00
Oron Feinerman 64587e248e Implement MemorySource<TSource>.CopyToAsync via WriteAsync 2022-05-24 13:09:34 +03:00
Oron Feinerman b66f7c5134 Add Memory property to ISpanOwner 2022-05-24 12:49:23 +03:00
Sergio Pedri 82566630d0 Merge pull request #261 from CommunityToolkit/dev/fix-build-errors-generic-generation-targets
Fix build errors with generic generation target types
2022-05-24 01:57:56 -07:00
Sergio Pedri db831fc34f Fix build error with generic ObservableValidator types 2022-05-24 09:54:51 +02:00
Sergio Pedri 59d92997ca Fix build error with generic IRecipient<T> types
This just uses the compiled LINQ expression fallback
2022-05-24 09:53:05 +02:00
Sergio Pedri 83d4ee2138 Merge pull request #260 from CommunityToolkit/dev/disable-generation-for-abstracts
Disable source generators for abstract types
2022-05-24 00:50:31 -07:00
Sergio Pedri d61796f1c7 Add unit tests for abstract source generation targets 2022-05-21 14:06:43 +02:00
Sergio Pedri 54baa39370 Disable validation/recipient generator for abstract types 2022-05-21 14:06:27 +02:00
Sergio Pedri 6af97af3ee Fix [ICommand] CanExecute with inherited generated property 2022-05-20 14:22:28 +02:00
Sergio Pedri b8db4b082e Merge pull request #248 from CommunityToolkit/dev/block-conflicting-generated-properties
Block [ObservableProperty] on properties causing conflicts
2022-05-13 14:53:13 +02:00
Sergio Pedri 0fb704d602 Merge pull request #250 from CommunityToolkit/dev/display-attribute-breaking-broadcast
Fix [AlsoBroadcastChange] not working when followed by other attributes
2022-05-13 14:52:47 +02:00
Sergio Pedri 612a6eaf20 Fix [AlsoBroadcastChange] breaking before other attributes 2022-05-10 15:53:21 +02:00
Sergio Pedri 27fd6c38f2 Add unit tests for [Display] breaking [AlsoBroadcastChange] 2022-05-10 15:41:05 +02:00
Sergio Pedri 73e85b44a7 Merge pull request #249 from CommunityToolkit/dev/culture-invariant-generators
Make source generators culture invariant
2022-05-10 14:03:49 +02:00
Sergio Pedri 9f951c2cf0 Make source generators culture invariant 2022-05-09 21:44:12 +02:00
Sergio Pedri 914f31d99b Add unit tests for blocked generated properties 2022-05-09 21:13:37 +02:00
Sergio Pedri 780b596f22 Add new checks and diagnostics for properties causing conflicts 2022-05-09 21:13:25 +02:00
Sergio Pedri df07309b50 Merge pull request #247 from CommunityToolkit/dev/remove-attributes-conditional
Remove [Conditional] from MVVM Toolkit attributes
2022-05-09 16:24:59 +02:00
Sergio Pedri 414c8375a3 Add unit test for base viewmodel in separate assembly 2022-05-09 16:11:44 +02:00
Sergio Pedri b52b427058 Remove [Conditional] from MVVM Toolkit attributes 2022-05-09 16:11:44 +02:00
Sergio Pedri d1f7c051aa Resolve some build warnings 2022-05-09 15:58:40 +02:00
Sergio Pedri f92fef7137 Add more unit tests for generics with [ObservableProperty]
This covers all cases from #224 as well.
2022-05-09 15:58:40 +02:00
Sergio Pedri a0f0b03eb5 Merge pull request #236 from CommunityToolkit/dev/observable-validator-partial-declarations
Fix ObservableValidator duplicate generated partial declarations
2022-05-09 15:18:37 +02:00
Daniel Banda f2dce06b4d Fixing some typos. 2022-05-03 21:21:10 -07:00
Sergio Pedri b5b0045483 Fix duplicate generated files for ObservableValidator generator 2022-05-03 16:20:23 +02:00
Sergio Pedri d1f7ef9eee Move partial filtering logic to new extension 2022-05-03 16:20:05 +02:00
Sergio Pedri 61539a26b8 Remove unnecessary using directives 2022-05-03 16:19:41 +02:00
Sergio Pedri f003c4fc6f Merge pull request #211 from CommunityToolkit/dev/fix-non-classes-nested-types
Fix generation of nested types that are not classes
2022-04-11 19:28:13 +02:00
Sergio Pedri e698d066a9 Add support for nested record types 2022-04-11 19:10:52 +02:00
Sergio Pedri 7f4888dba0 Add unit tests for nested types that are not classes 2022-04-11 19:10:52 +02:00
Sergio Pedri 753842a379 Merge pull request #199 from ovska/feat/highperformance/arraypool-ensurecapacity
Add EnsureCapacity to ArrayPoolExtensions
2022-04-11 15:17:34 +02:00
Sergio Pedri f34c0f3b49 Fix generation for nested types that are not classes 2022-04-11 14:28:14 +02:00
ovska 714576210d Test ArrayPoolExtensions.EnsureCapacity 2022-04-08 19:05:21 +03:00
ovska 2e1f1fe96e Add EnsureCapacity to ArrayPool extensions 2022-04-08 19:05:21 +03:00
Sergio Pedri f3bd3d8b72 Merge pull request #169 from CommunityToolkit/dev/improve-collections
Revamp observable collection APIs
2022-04-06 23:52:02 +02:00
Sergio Pedri b8979472ff Add an extra test case 2022-04-06 23:28:22 +02:00
Sergio Pedri 48deec9f77 Remove TODOs 2022-04-06 22:57:39 +02:00
Sergio Pedri ba20320cdc Add a comment explaining the collection fast paths 2022-04-06 22:52:19 +02:00
Sergio Pedri d1e75b9893 Add ObservableGroupedCollectionExtensions tests, bug fixes 2022-04-06 22:48:57 +02:00
Sergio Pedri dd2a72d4e7 Rename unit test methods for consistency 2022-04-06 22:48:57 +02:00
Sergio Pedri 274a3c0174 Minor code refactoring 2022-04-06 22:48:56 +02:00
Sergio Pedri 0e3be7e80c Add tests for ArgumentNullException-s in collections 2022-04-06 22:48:56 +02:00
Sergio Pedri bf31152d47 Optimize ILookup<TKey, TElement> implementations 2022-04-06 22:48:56 +02:00
Sergio Pedri f6a0f3fae8 Add null checks to public APIs 2022-04-06 22:48:56 +02:00
Sergio Pedri 08fca92424 Update ObservableGroupedCollectionExtensions with new shape 2022-04-06 22:48:56 +02:00
Sergio Pedri 2712e9b282 Seal ObservableGroup<TKey, TElement> for consistency 2022-04-06 22:48:56 +02:00
Sergio Pedri 03e85af860 Fix build errors in unit tests 2022-04-06 22:48:56 +02:00
Sergio Pedri fcdd3561fc Add [DebuggerDisplay] to ReadOnlyObservableGroup<,> 2022-04-06 22:48:55 +02:00
Sergio Pedri 224b3342e5 Add ILookup<,> to observable grouped collections 2022-04-06 22:48:55 +02:00