Commit Graph

2165 Commits

Author SHA1 Message Date
Sergio Pedri f6b40c6e71 Update incorrect comments 2022-12-22 13:21:53 +01:00
Sergio Pedri 40bd57fa16 Handle generated property type for TaskNotifier 2022-12-22 13:21:52 +01:00
Sergio Pedri 70bb31ce2f Bump version.json to 8.1.0 2022-12-20 15:11:40 +01:00
Sergio Pedri 52f0a4f800 Merge pull request #538 from CommunityToolkit/dev/remove-nullability-attributes
Remove nullability attributes generator
2022-12-19 15:51:55 -08:00
Sergio Pedri da68b2c97a Strip nullability attributes from parameters when not available 2022-12-19 20:31:23 +01:00
Sergio Pedri 8cfd646f50 Add MetadataInfo type for transitive generator 2022-12-19 20:31:23 +01:00
Sergio Pedri 6b253beeef Also generate [DebuggerNonUserCode] in transitive members 2022-12-19 20:31:23 +01:00
Sergio Pedri 5802e2f90b Stop generating polyfills for nullability attributes 2022-12-19 20:31:23 +01:00
Sergio Pedri 2a47127583 Merge pull request #541 from CommunityToolkit/dev/multi-target-legacy-support
Add target to fix analyzers on legacy .csproj projects
2022-12-19 11:30:43 -08:00
Sergio Pedri 6cf0dc0aca Add target to fix analyzers on legacy .csproj projects 2022-12-17 16:58:59 +01:00
Sergio Pedri 333265f618 Merge pull request #539 from CommunityToolkit/dev/skip-diagnostics-within-constructors
Skip field reference diagnostics from constructors
2022-12-14 08:15:57 -08:00
Sergio Pedri 1953935bbb Skip field reference diagnostics from constructors 2022-12-14 16:52:19 +01:00
Sergio Pedri 98aff983d0 Merge pull request #535 from CommunityToolkit/dev/stream-read-exactly
Use Stream.ReadExactly on .NET 7
2022-12-13 08:01:48 -08:00
Sergio Pedri cf451e8ac2 Fix exception type from Stream.Read extension 2022-12-13 16:22:22 +01:00
Sergio Pedri 5f70ec2ea7 Use Stream.ReadExactly on .NET 7 2022-12-13 13:04:21 +01:00
Sergio Pedri 460038207c Merge pull request #532 from CommunityToolkit/dev/observable-property-field-reference-analyzer
Add analyzer for references to fields with [ObservableProperty]
2022-12-13 03:56:19 -08:00
Sergio Pedri 9c35dc061a Fix formatting in field reference diagnostic message 2022-12-12 21:43:28 +01:00
Sergio Pedri 35e358459b Add unit tests for new analyzer 2022-12-12 21:35:56 +01:00
Sergio Pedri 526ed1d6da Suppress warnings from analyzers in unit tests 2022-12-12 21:35:56 +01:00
Sergio Pedri 97eb898370 Add FieldReferenceForObservablePropertyFieldAnalyzer 2022-12-12 21:35:56 +01:00
Sergio Pedri aa4ff300c4 Merge pull request #531 from CommunityToolkit/dev/base-attribute-analyzer
Add analyzer for incorrect [INotifyPropertyChanged] and [ObservableObject] use
2022-12-12 12:35:08 -08:00
Sergio Pedri e3980a73f3 Add unit tests for new analyzer 2022-12-12 20:16:33 +01:00
Sergio Pedri 88a56f493f Suppress warnings from analyzers in unit tests 2022-12-12 20:16:33 +01:00
Sergio Pedri 522d2d5b8d Add ClassUsingAttributeInsteadOfInheritanceAnalyzer 2022-12-12 20:16:32 +01:00
Sergio Pedri a7cfaa23ad Merge pull request #519 from CommunityToolkit/dev/ref-fields-memory
Use ref fields on .NET 7 for all span-like types
2022-12-12 07:06:40 -08:00
Sergio Pedri 839fd647c1 Merge pull request #520 from CommunityToolkit/dev/fix-stream-read-of-t
Fix StreamExtensions.Read<T> when using buffered streams
2022-12-07 15:01:34 -08:00
Sergio Pedri 7eef9f293e Add unit tests for buffered StreamExtensions.Read<T> 2022-12-07 16:57:22 +01:00
Sergio Pedri fe6362b88b Optimize StreamExtensions.Read<T> downlevel 2022-12-07 16:57:09 +01:00
Sergio Pedri debbb0513f Fix StreamExtensions.Read<T> for buffered streams 2022-12-07 16:13:47 +01:00
Sergio Pedri 47b8fe44ea Use ref fields in [ReadOnly]RefEnumerable<T>-s 2022-12-07 13:45:16 +01:00
Sergio Pedri 434f4825d3 Use ref fields in [ReadOnly]SpanEnumerable<T>-s 2022-12-07 13:20:54 +01:00
Sergio Pedri 83dd209f5f Fix mutability of ReadOnlySpan2D<T>.GetPinnableReference() 2022-12-07 13:20:54 +01:00
Sergio Pedri 1e622fbd45 Use ref fields in ReadOnlySpan2D<T> 2022-12-07 13:20:54 +01:00
Sergio Pedri e98a4949d3 Use ref fields in Span2D<T> 2022-12-07 13:20:54 +01:00
Sergio Pedri 6fff80d7b7 Fix ImmutableArrayBuilder<T>.Count reported value 2022-12-07 13:19:34 +01:00
Sergio Pedri 11269e1444 Merge pull request #512 from CommunityToolkit/dev/remove-unsafe-nullref
Replace Unsafe.NullRef<T>() with ref *(T*)null
2022-12-07 04:17:21 -08:00
Sergio Pedri d105721bb2 Replace Unsafe.NullRef<T>() with ref *(T*)null 2022-11-23 16:38:04 +01:00
Sergio Pedri 2b3e604cf6 Merge pull request #511 from CommunityToolkit/dev/use-language-unsafe
Replace Unsafe.SizeOf<T>() with sizeof(T)
2022-11-23 04:31:51 -08:00
Sergio Pedri 3bbfe6c75e Replace Unsafe.SizeOf<T>() with sizeof(T) 2022-11-23 02:52:02 +01:00
Sergio Pedri 2edbb0a0a2 Merge pull request #510 from CommunityToolkit/dev/shared-props
Use PolySharp for polyfills, and centralize shared MSBuild properties
2022-11-22 09:01:02 -08:00
Sergio Pedri 765901aace Centralize NETSTANDARD2_1_OR_GREATER define in .targets 2022-11-22 17:27:34 +01:00
Sergio Pedri 9d9de23c44 Move trimming properties to .targets file in src\ 2022-11-22 16:37:39 +01:00
Sergio Pedri 17fc0daf2d Move [InternalsVisibleTo] to .csproj files 2022-11-22 16:33:47 +01:00
Sergio Pedri 6c462db54e Use PolySharp to generate polyfills 2022-11-22 16:23:54 +01:00
Sergio Pedri 261e7d311b Move [SkipLocalsInit] to shared .targets file 2022-11-22 14:51:16 +01:00
Sergio Pedri e8969781af Merge pull request #507 from CommunityToolkit/dev/move-source-files
Move all source files into src\subfolder
2022-11-21 09:53:54 -08:00
Sergio Pedri 1f60a7bd4e Move all source files into src\ subfolder 2022-11-21 17:25:07 +01:00
Sergio Pedri ad50acbcbe Merge pull request #497 from pziezio/ibufferwriterextensions-fix-xmldoc
Fix IBufferWriterExtensions type of exception thrown documentation
2022-11-15 17:14:23 -08:00
Sergio Pedri a3bce08b4b Merge pull request #502 from CommunityToolkit/dev/drop-netcoreapp3.1
Drop .NET Core 3.1 TFM
2022-11-15 17:11:27 -08:00
Sergio Pedri ba425c85fb Switch CI to run .NET 7 tests 2022-11-16 01:48:01 +01:00