Commit Graph

2284 Commits

Author SHA1 Message Date
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
Sergio Pedri 9127b61673 Merge pull request #588 from CommunityToolkit/dev/attribute-inherit-fixer
Add fixer for ClassUsingAttributeInsteadOfInheritanceAnalyzer
2023-01-29 03:03:44 -08:00
Sergio Pedri a421802ef2 Remove DescendantNodesAndSelf() from code fixer 2023-01-28 13:01:11 +01:00
Sergio Pedri 5fe5e5e59a Merge pull request #590 from Youssef1313/fix-attribute-inherit-fixer
Use SyntaxGenerator and leave trivia handling up to it
2023-01-28 02:18:50 -08:00
Youssef Victor e1c9bcf6a8 Remove unused parameter 2023-01-28 11:38:56 +02:00
Youssef Victor 6cdf53bc92 Use SyntaxGenerator and leave trivia handling up to it 2023-01-28 11:35:19 +02:00
Sergio Pedri 3b2226bb29 Add draft of ClassUsingAttributeInsteadOfInheritanceCodeFixer tests 2023-01-26 22:55:02 +01:00
Sergio Pedri 9a0113f02a Add ClassUsingAttributeInsteadOfInheritanceCodeFixer 2023-01-26 22:10:04 +01:00
Sergio Pedri 96f3fad50a Merge pull request #581 from CommunityToolkit/dev/no-symbols-in-ivp
Move two more diagnostics to analyzers
2023-01-26 09:32:04 -08:00
Sergio Pedri f9ee15653d Merge pull request #578 from 333fred/fixer
Add fixers project and implement a fixer for FieldReferenceForObservablePropertyFieldAnalyzer
2023-01-26 09:30:24 -08:00
Sergio Pedri e7a79c3c5b Rename code fixer project to CommunityToolkit.Mvvm.CodeFixers 2023-01-23 16:53:47 +01:00
Sergio Pedri 1690599cdc Gather all symbols in RegisterCompilationStartAction in new analyzers 2023-01-23 15:41:18 +01:00
Sergio Pedri c70e973478 Use type symbols for lookup in new analyzers 2023-01-23 14:42:48 +01:00
Sergio Pedri 1be2fa125d Pack code fixer project in the MVVM Toolkit package 2023-01-23 01:07:22 +01:00