Commit Graph
2247 Commits
Author SHA1 Message Date
Sergio Pedri 2e7634829d Preserve /// <inheritdoc/> in top level types, add unit test 2023-03-25 18:19:37 +01:00
Sergio Pedri 3b2d287d28 Add /// <inheritdoc/> to generated type hierarchies 2023-03-25 18:11:07 +01:00
Sergio Pedri b8df95a9f3 Merge pull request #646 from CommunityToolkit/dev/observable-property-membernotnull
Add [MemberNotNull] to [ObservableProperty] set accessors
2023-03-14 22:01:01 +01:00
Sergio Pedri 673801af53 Update generator for unconstrained generic nullability 2023-03-14 18:34:27 +01:00
Sergio Pedri d2fe8a0eb0 Add unit tests for [MemberNotNull] generation 2023-03-14 14:07:59 +01:00
Sergio Pedri c11bb0eaca Add [MemberNotNull] to [ObservableProperty] set accessor 2023-03-14 13:53:32 +01:00
Sergio Pedri 24388b8d2a Merge pull request #639 from GabrieleMessina/fix-TypeExtensions-ToTypeString
Fix TypeExtensions.ToTypeString method Exception.
2023-03-12 20:48:41 +01:00
Gabriele Messina 551921d2dc Add open generics support in ToTypeString
Fix TypeExtensions ToTypeString method throws if invoked on a generic class without specify the generic type
2023-03-12 20:30:38 +01:00
Sergio Pedri 1537e98edb Bump NuGet packages to latest stable 2023-03-10 01:47:17 +01:00
Sergio Pedri 7c3c8c56fb Bump version to 8.2.0 2023-03-09 21:16:11 +01:00
Sergio Pedri 57d3de4050 Merge pull request #633 from CommunityToolkit/dev/partial-commands
Support partial methods and forwarded attributes with [RelayCommand]
2023-03-09 20:47:07 +01:00
Sergio Pedri 66f582bd94 Fix [RelayCommand] attribute over methods with no attributes 2023-03-09 20:25:50 +01:00
Sergio Pedri 7ec949536e Merge pull request #631 from HavenDV/patch-1
fix: Added missing Dispose() call to HashCode.cs.
2023-03-09 16:19:17 +01:00
Konstantin S e571eb3050 Add missing Dispose() call to HashCode 2023-03-09 15:40:54 +01:00
Sergio Pedri a925b19300 Remove unnecessary loop, use list pattern instead 2023-03-09 15:38:17 +01:00
Sergio Pedri 9297335238 Fix partial methods support with Roslyn 4.0
Also ensure a consistent order for forwarded attributes
2023-03-09 15:38:16 +01:00
Sergio Pedri a845ad4b16 Fix attributes gathering from partial command methods 2023-03-09 14:13:34 +01:00
Sergio Pedri 30c4ad472c Support partial [RelayCommand] methods 2023-03-09 13:53:42 +01:00
Sergio Pedri 974e819c7b Merge pull request #630 from CommunityToolkit/dev/relay-command-attribute-forwarding
Add [field:] and [property:] support for [RelayCommand] methods
2023-03-09 13:52:26 +01:00
Sergio Pedri 13ce99005a Remove SingleOrDefault() use in SymbolInfo extension 2023-03-08 20:19:40 +01:00
Sergio Pedri fd7fa69538 Add unit tests for forwarded [RelayCommand] attributes 2023-03-08 20:19:39 +01:00
Sergio Pedri 476a163433 Add RelayCommandAttributeWithFieldOrPropertyTargetDiagnosticSuppressor 2023-03-08 20:19:39 +01:00
Sergio Pedri 41100e2632 Add SyntaxTokenExtensions, minor code refactoring 2023-03-08 18:59:35 +01:00
Sergio Pedri 1320475d0d Add support for forwarded field/property command attributes 2023-03-08 18:59:34 +01:00
Sergio Pedri 0b8ee5a0dd Add SymbolInfoExtensions extensions, minor code tweaks 2023-03-08 17:35:54 +01:00
Sergio Pedri ee0587ebf9 Merge pull request #622 from CommunityToolkit/dev/remove-diagnostics-linq
Drop System.Linq from CommunityToolkit.Diagnostics
2023-03-01 00:25:06 +01:00
Sergio Pedri af2cbf340f Drop System.Linq from CommunityToolkit.Diagnostics 2023-02-27 15:12:31 +01:00
Sergio Pedri 93a57d3c93 Merge pull request #616 from CommunityToolkit/dev/array-writer-segment
Add ArrayPoolBufferWriter<T>.DangerousGetArray() API
2023-02-20 05:07:03 -08:00
Sergio Pedri 324235d36a Fix members ordering in ArrayPoolBufferWriter<T> 2023-02-20 13:12:18 +01:00
Sergio Pedri 0ec2c25f7a Add ArrayPoolBufferWriter<T>.DangerousGetArray() 2023-02-20 13:11:38 +01:00
Sergio Pedri 0a2e8edec2 Merge pull request #606 from CommunityToolkit/dev/fix-add-source
Fix source generators processing nested/generic types
2023-02-14 05:14:47 -08:00
Sergio Pedri 0ea77c3aae Add codegen test for filename hints on Roslyn 4.0.1 2023-02-14 13:49:29 +01:00
Sergio Pedri 030c3b3bdb Add missing readonly field modifiers 2023-02-14 13:48:06 +01:00
Sergio Pedri 1dd1cd1c19 Fix AddSource operations on Roslyn 4.0.1 2023-02-14 13:44:46 +01:00
Sergio Pedri 63ba418b6f Merge pull request #603 from CommunityToolkit/dev/fix-double-attribute-params
Fix forwarded double attribute parameters
2023-02-10 10:30:35 -08:00
Sergio Pedri b4b2227bd9 Fix forwarded double attribute parameters 2023-02-10 19:01:23 +01:00
Sergio Pedri af3cb964bd Merge pull request #587 from CommunityToolkit/dev/resolve-symbols-early
Resolve all needed symbols early in analyzers
2023-02-01 13:11:36 -08:00
Sergio Pedri afad5d2b20 Do base type check early in ClassUsingAttributeInsteadOfInheritanceAnalyzer 2023-02-01 00:30:04 +01:00
Sergio Pedri 857b4b871a Resolve symbols before registering actions in analyzers 2023-02-01 00:30:04 +01:00
Sergio Pedri c4d904163b Add Compilation.TryBuildNamedTypeSymbolMap extension 2023-02-01 00:30:03 +01:00
Sergio Pedri 01efc758a8 Merge pull request #582 from CommunityToolkit/dev/new-property-hooks
Add new OnPropertyNameChanging and Changed overloads
2023-01-31 15:29:25 -08:00
Sergio Pedri 845503d7f7 Add codegen test for new partial property hooks 2023-02-01 00:07:45 +01:00
Sergio Pedri 7f4c8800aa Add functional tests for new generated methods 2023-02-01 00:07:45 +01:00
Sergio Pedri c684646108 Handle nullability in new hooks with previous value 2023-02-01 00:07:45 +01:00
Sergio Pedri f07bb2015d Optimize codegen when hooks are not used 2023-02-01 00:07:45 +01:00
Sergio Pedri 2542767121 Generate calls to new property hook overloads 2023-02-01 00:07:45 +01:00
Sergio Pedri 4350cef5b0 Generate new property hook overloads 2023-02-01 00:07:44 +01:00
Sergio Pedri e6e0940674 Merge pull request #592 from CommunityToolkit/dev/fix-vb-net-projects
Fix build error from VB.NET projects
2023-01-31 05:25:02 -08:00
Sergio Pedri 6a7cc7aa33 Fix build error from VB.NET projects 2023-01-30 15:57:23 +01:00
Sergio Pedri 135ba8581d Add missing XML docs for property hooks 2023-01-29 12:07:09 +01:00