1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2024-11-24 07:42:45 +01:00
Commit Graph

1970 Commits

Author SHA1 Message Date
Sergio Pedri
6f20b2611c Switch attribute property setters to init-only 2022-01-01 19:53:50 +01:00
Sergio Pedri
f81cf4b4f9 Switch to target-type new() for direct return values 2022-01-01 17:02:31 +01:00
Sergio Pedri
57f4c3d97d Add [SkipLocalsInit] to missing assemblies 2022-01-01 16:54:47 +01:00
Sergio Pedri
ef77d0973d
Merge pull request #77 from CommunityToolkit/dev/strip-generator-attributes
Strip source generator attributes by default
2021-12-31 21:56:36 +01:00
Sergio Pedri
e31a08890e Add unit tests for attributes stripping 2021-12-31 20:10:50 +01:00
Sergio Pedri
350c2374f5 Strip source generator attributes by default
Define "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" to keep them
2021-12-31 20:10:02 +01:00
Sergio Pedri
f7a980e104
Merge pull request #76 from CommunityToolkit/dev/trimming-support
Add trimming support
2021-12-31 20:09:32 +01:00
Sergio Pedri
63abbb051d Fix generated members accessibility for sealed types 2021-12-31 18:06:42 +01:00
Sergio Pedri
704e5073f1 Enable implementing OnActivated/OnDeactivated with [ObservableRecipient] 2021-12-31 17:58:12 +01:00
Sergio Pedri
35d403b945 Fix mixed whitespaces in generated files 2021-12-31 17:32:47 +01:00
Sergio Pedri
e12e0858a4 Fix removal of [RequiresUnreferencedCode] on older runtimes 2021-12-31 17:04:10 +01:00
Sergio Pedri
cc3205a362 Move RequiresUnreferencedCodeAttribute to correct folder 2021-12-31 16:47:10 +01:00
Sergio Pedri
8e7c48fab1 Move MVVM Toolkit internals tests to separate project 2021-12-31 16:47:10 +01:00
Sergio Pedri
af03bdfff0 Remove trimming annoations for [ObservableRecipient] on older runtimes 2021-12-31 16:28:00 +01:00
Sergio Pedri
afc7232dc7 Improve custom filtering support in TransitiveMembersGenerator<TInfo> 2021-12-29 20:52:50 +01:00
Sergio Pedri
a7e0f2c370 Enable trimming support in the MVVM Toolkit
Also added linker annotations where needed
2021-12-29 19:26:37 +01:00
Sergio Pedri
14c6dc34fb Enable trimming support on all packages except MVVM Toolkit 2021-12-29 19:20:50 +01:00
Sergio Pedri
779cbfe60d Remove unnecessary linker unfriendly path in TypeExtensions 2021-12-29 19:20:50 +01:00
Sergio Pedri
4427b44290
Merge pull request #75 from CommunityToolkit/dev/code-style-tweaks
Minor code style tweaks
2021-12-29 19:20:24 +01:00
Sergio Pedri
62d1245e3c Update .git-blame-ignore-revs 2021-12-29 18:57:15 +01:00
Sergio Pedri
cb4e418ad3 Refactor remaining partial type declarations 2021-12-29 18:56:14 +01:00
Sergio Pedri
0693d6c964 Fix leftover file-scoped namespaces 2021-12-29 18:56:14 +01:00
Sergio Pedri
e6b4ea354a Fix partial types in Diagnostics package 2021-12-29 18:51:11 +01:00
Sergio Pedri
5309963791
Merge pull request #63 from CommunityToolkit/dev/incremental-generators
Switch source generators to incremental generators
2021-12-29 18:49:52 +01:00
Sergio Pedri
53614e7e3c Add comments to GetFullMetadataNameForFileName 2021-12-29 18:31:48 +01:00
Sergio Pedri
f8dcd09581 Remove call to MulticastDelegate.op_Equality 2021-12-29 18:31:48 +01:00
Sergio Pedri
0ae955d297 Add .targets file to disable source generators on Roslyn 3.x
Still a bit experimental, needs more testing and validation
2021-12-29 18:31:48 +01:00
Sergio Pedri
8cdc261997 Remove unnecessary partial class modifier 2021-12-29 18:31:48 +01:00
Sergio Pedri
af82fe95ba Fix a small typo in XML docs
This closes #58
2021-12-29 18:31:47 +01:00
Sergio Pedri
d01455ecb2 Add unit test for build error reported in #13 2021-12-29 18:31:47 +01:00
Sergio Pedri
64657753a3 Remove leftover internal helpers and adjust visibility 2021-12-29 18:31:47 +01:00
Sergio Pedri
9c581dc531 Add nullable enable directives to generated files 2021-12-29 18:31:12 +01:00
Sergio Pedri
aae1cbde84 Add base Comparer<T, TSelf> type 2021-12-29 18:31:11 +01:00
Sergio Pedri
9cc7d41c1e Add FilterWithLanguageVersion extension to gate on language version 2021-12-29 18:31:11 +01:00
Sergio Pedri
13a9149eee Lower C# version requirement to 8 for all generators 2021-12-29 18:31:11 +01:00
Sergio Pedri
6fb377baee Remove cached delegate from ObservableObject 2021-12-29 18:31:11 +01:00
Sergio Pedri
48c7c73ae6 Remove non incremental generator paths from unit tests 2021-12-29 18:31:11 +01:00
Sergio Pedri
2428765852 Remove leftover DiagnosticDescriptor-s 2021-12-29 18:31:11 +01:00
Sergio Pedri
9474591020 Centralize handling of sealed target types 2021-12-29 18:31:11 +01:00
Sergio Pedri
164a8d92e3 Fix member generation in sealed types 2021-12-29 18:31:11 +01:00
Sergio Pedri
74c60c7a4a Remove non incremental TransitiveMembersGenerator 2021-12-29 18:31:11 +01:00
Sergio Pedri
1f90e526e9 Switch ObservableRecipientGenerator to incremental 2021-12-29 18:30:53 +01:00
Sergio Pedri
b3eb5e55f5 Switch ObservableObjectGenerator to incremental 2021-12-29 18:30:53 +01:00
Sergio Pedri
839ddf98b3 Remove non incremental INotifyPropertyChangedGenerator 2021-12-29 18:30:53 +01:00
Sergio Pedri
d3da266a1a Add incremental INotifyPropertyChangedGenerator 2021-12-29 18:30:53 +01:00
Sergio Pedri
ddeddd8c08 Add initial version of incremental TransitiveMembersGenerator 2021-12-29 18:30:53 +01:00
Sergio Pedri
8bbc3092fe Enable diagnostics for ObservablePropertyGenerator 2021-12-29 18:30:53 +01:00
Sergio Pedri
bf02beea06 Fix __KnownPropertyChangedEventArgs generation 2021-12-29 18:30:53 +01:00
Sergio Pedri
9defa26408 Minor code refactoring 2021-12-29 18:30:53 +01:00
Sergio Pedri
b173cd3570 Remove non incremental ObservablePropertyGenerator 2021-12-29 18:30:53 +01:00