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/Diagnostics/DiagnosticDescriptors.cs
+29-29Lines changed: 29 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -117,14 +117,14 @@ internal static class DiagnosticDescriptors
117
117
/// Format: <c>"The method {0}.{1} cannot be used to generate a command property, as its signature isn't compatible with any of the existing relay command types"</c>.
messageFormat:"The method {0}.{1} cannot be used to generate a command property, as its signature isn't compatible with any of the existing relay command types",
124
-
category:typeof(ICommandGenerator).FullName,
124
+
category:typeof(RelayCommandGenerator).FullName,
125
125
defaultSeverity:DiagnosticSeverity.Error,
126
126
isEnabledByDefault:true,
127
-
description:"Cannot apply [ICommand] to methods with a signature that doesn't match any of the existing relay command types.",
127
+
description:"Cannot apply [RelayCommand] to methods with a signature that doesn't match any of the existing relay command types.",
128
128
helpLinkUri:"https://aka.ms/mvvmtoolkit");
129
129
130
130
/// <summary>
@@ -148,12 +148,12 @@ internal static class DiagnosticDescriptors
title:"Multiple ICommand.CanExecute member name matches",
167
+
title:"Multiple RelayCommand.CanExecute member name matches",
168
168
messageFormat:"The CanExecute name must refer to a single member, but \"{0}\" has multiple matches in type {1}",
169
-
category:typeof(ICommandGenerator).FullName,
169
+
category:typeof(RelayCommandGenerator).FullName,
170
170
defaultSeverity:DiagnosticSeverity.Error,
171
171
isEnabledByDefault:true,
172
-
description:"Cannot set the CanExecute name in [ICommand] to one that has multiple matches in its parent type (it must refer to a single compatible member).",
172
+
description:"Cannot set the CanExecute name in [RelayCommand] to one that has multiple matches in its parent type (it must refer to a single compatible member).",
173
173
helpLinkUri:"https://aka.ms/mvvmtoolkit");
174
174
175
175
/// <summary>
@@ -180,44 +180,44 @@ internal static class DiagnosticDescriptors
title:"No valid ICommand.CanExecute member match",
183
+
title:"No valid RelayCommand.CanExecute member match",
184
184
messageFormat:"The CanExecute name must refer to a compatible member, but no valid members were found for \"{0}\" in type {1}",
185
-
category:typeof(ICommandGenerator).FullName,
185
+
category:typeof(RelayCommandGenerator).FullName,
186
186
defaultSeverity:DiagnosticSeverity.Error,
187
187
isEnabledByDefault:true,
188
-
description:"The CanExecute name in [ICommand] must refer to a compatible member (either a property or a method) to be used in a generated command.",
188
+
description:"The CanExecute name in [RelayCommand] must refer to a compatible member (either a property or a method) to be used in a generated command.",
189
189
helpLinkUri:"https://aka.ms/mvvmtoolkit");
190
190
191
191
/// <summary>
192
-
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>ICommandAttribute.AllowConcurrentExecutions</c> is being set for a non-asynchronous method.
192
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>RelayCommandAttribute.AllowConcurrentExecutions</c> is being set for a non-asynchronous method.
193
193
/// <para>
194
-
/// Format: <c>"The method {0}.{1} cannot be annotated with the [ICommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type"</c>.
194
+
/// Format: <c>"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type"</c>.
title:"Invalid concurrency control setting usage",
200
-
messageFormat:"The method {0}.{1} cannot be annotated with the [ICommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type",
201
-
category:typeof(ICommandGenerator).FullName,
200
+
messageFormat:"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying a concurrency control setting, as it maps to a non-asynchronous command type",
201
+
category:typeof(RelayCommandGenerator).FullName,
202
202
defaultSeverity:DiagnosticSeverity.Error,
203
203
isEnabledByDefault:true,
204
-
description:"Cannot apply the [ICommand] attribute specifying a concurrency control setting to methods mapping to non-asynchronous command types.",
204
+
description:"Cannot apply the [RelayCommand] attribute specifying a concurrency control setting to methods mapping to non-asynchronous command types.",
205
205
helpLinkUri:"https://aka.ms/mvvmtoolkit");
206
206
207
207
/// <summary>
208
-
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>ICommandAttribute.IncludeCancelCommandParameter</c> is being set for an invalid method.
208
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when <c>RelayCommandAttribute.IncludeCancelCommandParameter</c> is being set for an invalid method.
209
209
/// <para>
210
-
/// Format: <c>"The method {0}.{1} cannot be annotated with the [ICommand] attribute specifying to include a cancel command, as it does not map to an asynchronous command type taking a cancellation token"</c>.
210
+
/// Format: <c>"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying to include a cancel command, as it does not map to an asynchronous command type taking a cancellation token"</c>.
title:"Invalid include cancel command setting usage",
216
-
messageFormat:"The method {0}.{1} cannot be annotated with the [ICommand] attribute specifying to include a cancel command, as it does not map to an asynchronous command type taking a cancellation token",
217
-
category:typeof(ICommandGenerator).FullName,
216
+
messageFormat:"The method {0}.{1} cannot be annotated with the [RelayCommand] attribute specifying to include a cancel command, as it does not map to an asynchronous command type taking a cancellation token",
217
+
category:typeof(RelayCommandGenerator).FullName,
218
218
defaultSeverity:DiagnosticSeverity.Error,
219
219
isEnabledByDefault:true,
220
-
description:"Cannot apply the [ICommand] attribute specifying to include a cancel command to methods not mapping to an asynchronous command type accepting a cancellation token.",
220
+
description:"Cannot apply the [RelayCommand] attribute specifying to include a cancel command to methods not mapping to an asynchronous command type accepting a cancellation token.",
221
221
helpLinkUri:"https://aka.ms/mvvmtoolkit");
222
222
223
223
/// <summary>
@@ -365,19 +365,19 @@ internal static class DiagnosticDescriptors
365
365
helpLinkUri:"https://aka.ms/mvvmtoolkit");
366
366
367
367
/// <summary>
368
-
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a specified <c>[ICommand]</c> method has any overloads.
368
+
/// Gets a <see cref="DiagnosticDescriptor"/> indicating when a specified <c>[RelayCommand]</c> method has any overloads.
369
369
/// <para>
370
370
/// Format: <c>"The CanExecute name must refer to a single member, but "{0}" has multiple matches in type {1}"</c>.
title:"Multiple overloads for method annotated with ICommand",
376
-
messageFormat:"The method {0}.{1} cannot be annotated with [ICommand], has it has multiple overloads (command methods must be unique within their containing type)",
377
-
category:typeof(ICommandGenerator).FullName,
375
+
title:"Multiple overloads for method annotated with RelayCommand",
376
+
messageFormat:"The method {0}.{1} cannot be annotated with [RelayCommand], has it has multiple overloads (command methods must be unique within their containing type)",
377
+
category:typeof(RelayCommandGenerator).FullName,
378
378
defaultSeverity:DiagnosticSeverity.Error,
379
379
isEnabledByDefault:true,
380
-
description:"Methods with multiple overloads cannot be annotated with [ICommand], as command methods must be unique within their containing type.",
380
+
description:"Methods with multiple overloads cannot be annotated with [RelayCommand], as command methods must be unique within their containing type.",
0 commit comments