You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs
+43-21Lines changed: 43 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -108,20 +108,56 @@ public static RecipientInfo GetInfo(INamedTypeSymbol typeSymbol, ImmutableArray<
108
108
/// <summary>
109
109
/// Gets the head <see cref="CompilationUnitSyntax"/> instance.
110
110
/// </summary>
111
+
/// <param name="isDynamicallyAccessedMembersAttributeAvailable">Indicates whether <c>[DynamicallyAccessedMembers]</c> should be generated.</param>
111
112
/// <returns>The head <see cref="CompilationUnitSyntax"/> instance with the type attributes.</returns>
Copy file name to clipboardExpand all lines: CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.cs
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,10 +42,19 @@ public void Initialize(IncrementalGeneratorInitializationContext context)
42
42
.Collect()
43
43
.Select(static(item,_)=>item.Length>0);
44
44
45
+
// Check whether [DynamicallyAccessedMembers] is available
/// if the value produced by the input <see cref="IncrementalValueProvider{TValue}"/> is <see langword="true"/>, and also supplying a given input state.
70
70
/// </summary>
71
71
/// <param name="context">The input <see cref="IncrementalGeneratorInitializationContext"/> value being used.</param>
0 commit comments