309 references to ReportDiagnostic
Aspire.Hosting.Integration.Analyzers (9)
AspireExportAnalyzer.cs (9)
165context.ReportDiagnostic(Diagnostic.Create( 175context.ReportDiagnostic(Diagnostic.Create( 184context.ReportDiagnostic(Diagnostic.Create( 196context.ReportDiagnostic(Diagnostic.Create( 256context.ReportDiagnostic(Diagnostic.Create( 322context.ReportDiagnostic(Diagnostic.Create( 719context.ReportDiagnostic(Diagnostic.Create( 737context.ReportDiagnostic(Diagnostic.Create( 750context.ReportDiagnostic(Diagnostic.Create(
ILLink.RoslynAnalyzer (18)
DynamicallyAccessedMembersAnalyzer.cs (13)
150var genericArgumentDataFlow = new GenericArgumentDataFlow(dataFlowAnalyzerContext.TrimAnalyzer, FeatureContext.None, typeNameResolver, type, location, context.ReportDiagnostic); 155DynamicallyAccessedMembersTypeHierarchy.ApplyDynamicallyAccessedMembersToTypeHierarchy(typeNameResolver, location, type, context.ReportDiagnostic); 182context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnFieldCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 186context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnMethodReturnValueCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 188context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnMethods), location)); 192context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnMethodParameterCanOnlyApplyToTypesOrStrings), location, parameter.GetDisplayName(), member.GetDisplayName())); 198context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersOnPropertyCanOnlyApplyToTypesOrStrings), location, member.GetDisplayName())); 200context.ReportDiagnostic(Diagnostic.Create(DiagnosticDescriptors.GetDiagnosticDescriptor(DiagnosticId.DynamicallyAccessedMembersIsNotAllowedOnExtensionProperties), location, member.GetDisplayName())); 232context.ReportDiagnostic(Diagnostic.Create( 256context.ReportDiagnostic(Diagnostic.Create( 282context.ReportDiagnostic(Diagnostic.Create( 297context.ReportDiagnostic(Diagnostic.Create( 344context.ReportDiagnostic(Diagnostic.Create(
RequiresAnalyzerBase.cs (5)
204context.ReportDiagnostic); 214var genericArgumentDataFlow = new GenericArgumentDataFlow(this, FeatureContext.None, typeNameResolver, implicitCtor, typeSymbol.Locations[0], context.ReportDiagnostic); 280symbolAnalysisContext.ReportDiagnostic(Diagnostic.Create( 288symbolAnalysisContext.ReportDiagnostic(Diagnostic.Create( 298symbolAnalysisContext.ReportDiagnostic(Diagnostic.Create(
Microsoft.Analyzers.Extra (1)
MakeExeTypesInternalAnalyzer.cs (1)
135symbolActionContext.ReportDiagnostic(diagnostic);
Microsoft.AspNetCore.Analyzers (4)
BuildServiceProviderAnalyzer.cs (1)
31context.ReportDiagnostic(Diagnostic.Create(
UseAuthorizationAnalyzer.cs (2)
49context.ReportDiagnostic(Diagnostic.Create( 69context.ReportDiagnostic(Diagnostic.Create(
UseMvcAnalyzer.cs (1)
43context.ReportDiagnostic(Diagnostic.Create(
Microsoft.AspNetCore.App.Analyzers (2)
Mvc\DetectAmbiguousActionRoutes.cs (1)
42context.ReportDiagnostic(Diagnostic.Create(
Mvc\DetectOverriddenAuthorizeAttribute.cs (1)
216context.ReportDiagnostic(Diagnostic.Create(
Microsoft.AspNetCore.Components.Analyzers (10)
AuthenticationStateProviderAnalyzer.cs (1)
78endContext.ReportDiagnostic(Diagnostic.Create(
ComponentParameterAnalyzer.cs (5)
84context.ReportDiagnostic(Diagnostic.Create( 91context.ReportDiagnostic(Diagnostic.Create( 105context.ReportDiagnostic(Diagnostic.Create( 115context.ReportDiagnostic(Diagnostic.Create( 126context.ReportDiagnostic(Diagnostic.Create(
InternalUsageAnalyzer.cs (2)
166context.ReportDiagnostic(Diagnostic.Create( 176context.ReportDiagnostic(Diagnostic.Create(
JSInvokableAnalyzer.cs (1)
57context.ReportDiagnostic(Diagnostic.Create(
StateHasChangedAnalyzer.cs (1)
162endContext.ReportDiagnostic(Diagnostic.Create(
Microsoft.AspNetCore.Components.SdkAnalyzers (6)
ComponentParameterAnalyzer.cs (4)
78context.ReportDiagnostic(Diagnostic.Create( 85context.ReportDiagnostic(Diagnostic.Create( 99context.ReportDiagnostic(Diagnostic.Create( 113context.ReportDiagnostic(Diagnostic.Create(
InternalUsageAnalyzer.cs (2)
166context.ReportDiagnostic(Diagnostic.Create( 176context.ReportDiagnostic(Diagnostic.Create(
Microsoft.AspNetCore.Mvc.Analyzers (4)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (3)
89context.ReportDiagnostic(Diagnostic.Create( 103context.ReportDiagnostic(Diagnostic.Create( 117context.ReportDiagnostic(Diagnostic.Create(
TopLevelParameterNameAnalyzer.cs (1)
73context.ReportDiagnostic(
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (1)
584context.ReportDiagnostic,
Microsoft.CodeAnalysis.Analyzers (19)
FixAnalyzers\FixerWithFixAllAnalyzer.cs (3)
232context.ReportDiagnostic(diagnostic); 285context.ReportDiagnostic(diagnostic); 298context.ReportDiagnostic(diagnostic);
ImplementationIsObsoleteAnalyzer.cs (1)
58context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(Rule, namedTypeSymbol.Name, iface.Name, (string)attr.ConstructorArguments[0].Value!));
InternalImplementationOnlyAnalyzer.cs (1)
61context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(Rule, namedTypeSymbol.Name, iface.Name));
MetaAnalyzers\ClassIsNotDiagnosticAnalyzer.cs (1)
55sac.ReportDiagnostic(namedType.Locations[0].CreateDiagnostic(Rule, namedType.Name));
MetaAnalyzers\CompilerExtensionStrictApiAnalyzer.cs (1)
153context.ReportDiagnostic(Diagnostic.Create(descriptor, Location.Create(applicationSyntaxReference.SyntaxTree, applicationSyntaxReference.Span)));
MetaAnalyzers\CompilerExtensionTargetFrameworkAnalyzer.cs (1)
102context.ReportDiagnostic(Diagnostic.Create(
MetaAnalyzers\DiagnosticAnalyzerAttributeAnalyzer.cs (2)
126symbolContext.ReportDiagnostic(diagnostic); 141symbolContext.ReportDiagnostic(diagnostic);
MetaAnalyzers\DiagnosticAnalyzerFieldsAnalyzer.cs (1)
168context.ReportDiagnostic(diagnostic);
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (4)
313resourcesDataValueMap, context.Options, context.ReportDiagnostic, context.CancellationToken); 315resourcesDataValueMap, context.Options, context.ReportDiagnostic, context.CancellationToken); 317resourcesDataValueMap, context.Options, context.ReportDiagnostic, context.CancellationToken); 443context.ReportDiagnostic(Diagnostic.Create(AddCompilationEndCustomTagRule, field.Locations[0], field.Name));
MetaAnalyzers\DoNotUseFileTypesForAnalyzersOrGenerators.cs (1)
65context.ReportDiagnostic(diagnostic);
MetaAnalyzers\ReportDiagnosticAnalyzer.cs (1)
246symbolContext.ReportDiagnostic(diagnostic);
MetaAnalyzers\SymbolIsBannedInAnalyzersAnalyzer.cs (1)
77symbolAnalysisContext.ReportDiagnostic(symbol.Locations.CreateDiagnostic(SymbolIsBannedInAnalyzersAnalyzer.NoSettingSpecifiedSymbolIsBannedRule, symbol));
src\roslyn\src\RoslynAnalyzers\Microsoft.CodeAnalysis.BannedApiAnalyzers\Core\SymbolIsBannedAnalyzerBase.cs (1)
72VerifyAttributes(context.ReportDiagnostic, context.Symbol.GetAttributes(), context.CancellationToken);
Microsoft.CodeAnalysis.CodeStyle (6)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
115ReportUnusedParameterDiagnostic(parameter, hasReference, context.ReportDiagnostic, context.Options, interpolatedStringHandlerAttribute, context.CancellationToken);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
133symbolEndContext.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
74symbolContext.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
712symbolEndContext.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
660context.ReportDiagnostic(DiagnosticHelper.Create( 670context.ReportDiagnostic(Diagnostic.Create(
Microsoft.CodeAnalysis.CSharp.CodeStyle (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
115context.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
123context.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
59context.ReportDiagnostic(DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
187context.ReportDiagnostic(DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
233context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.CSharp.Features (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructFieldsWritable\CSharpMakeStructFieldsWritableDiagnosticAnalyzer.cs (1)
115context.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
123context.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
59context.ReportDiagnostic(DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
187context.ReportDiagnostic(DiagnosticHelper.Create(
src\roslyn\src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
233context.ReportDiagnostic(DiagnosticHelper.Create(
Microsoft.CodeAnalysis.Features (6)
src\9547feb31df4cc5d\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
115ReportUnusedParameterDiagnostic(parameter, hasReference, context.ReportDiagnostic, context.Options, interpolatedStringHandlerAttribute, context.CancellationToken);
src\roslyn\src\Analyzers\Core\Analyzers\MakeFieldReadonly\AbstractMakeFieldReadonlyDiagnosticAnalyzer.cs (1)
133symbolEndContext.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\Core\Analyzers\NamingStyle\NamingStyleDiagnosticAnalyzerBase.cs (1)
74symbolContext.ReportDiagnostic(diagnostic);
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
712symbolEndContext.ReportDiagnostic(DiagnosticHelper.CreateWithLocationTags(
src\roslyn\src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (2)
660context.ReportDiagnostic(DiagnosticHelper.Create( 670context.ReportDiagnostic(Diagnostic.Create(
Microsoft.CodeAnalysis.NetAnalyzers (167)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructors.cs (1)
55context.ReportDiagnostic(symbol.CreateDiagnostic(Rule, symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidEmptyInterfaces.cs (1)
52context.ReportDiagnostic(symbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidExcessiveParametersOnGenericTypes.cs (1)
54context.ReportDiagnostic(namedType.CreateDiagnostic(Rule, namedType.Name, MaximumNumberOfTypeParameters));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AvoidOutParameters.cs (1)
76analysisContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CancellationTokenParametersMustComeLast.cs (2)
110symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(Rule, methodSymbol.ToDisplayString())); 151symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(Rule, methodSymbol.ToDisplayString()));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CollectionPropertiesShouldBeReadOnly.cs (1)
139context.ReportDiagnostic(property.CreateDiagnostic(Rule, property.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CollectionsShouldImplementGenericInterface.cs (2)
160context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(Rule, namedTypeSymbol.Name, 167context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(RuleMultiple, namedTypeSymbol.Name,
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DeclareTypesInNamespaces.cs (1)
51context.ReportDiagnostic(type.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.cs (1)
80AnalyzeSymbol((INamedTypeSymbol)context.Symbol, attributeType, context.Compilation, context.ReportDiagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareProtectedMembersInSealedTypes.cs (1)
64context.ReportDiagnostic(symbol.CreateDiagnostic(Rule, symbol.Name, symbol.ContainingType.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareStaticMembersOnGenericTypes.cs (1)
65symbolAnalysisContext.ReportDiagnostic(symbol.CreateDiagnostic(Rule, symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDeclareVisibleInstanceFields.cs (1)
74symbolAnalysisContext.ReportDiagnostic(field.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotExposeGenericLists.cs (4)
58context.ReportDiagnostic(field.CreateDiagnostic(Rule, 82context.ReportDiagnostic(property.CreateDiagnostic(Rule, 113context.ReportDiagnostic(methodSymbol.CreateDiagnostic(Rule, 126context.ReportDiagnostic(parameter.CreateDiagnostic(Rule,
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotHideBaseClassMethods.cs (1)
63context.ReportDiagnostic(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotNameEnumValuesReserved.cs (1)
58context.ReportDiagnostic(field.CreateDiagnostic(Rule, field.ContainingType.Name, field.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotOverloadOperatorEqualsOnReferenceTypes.cs (1)
77context.ReportDiagnostic(method.CreateDiagnostic(Rule, method.ContainingType.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotPassTypesByReference.cs (1)
66context.ReportDiagnostic(parameterSymbol.CreateDiagnostic(Rule, parameterSymbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotPrefixEnumValuesWithTypeName.cs (1)
67context.ReportDiagnostic(value.CreateDiagnostic(Rule, symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumShouldNotHaveDuplicatedValues.cs (1)
151context.ReportDiagnostic(field.CreateDiagnostic(RuleDuplicatedValue, field.Name, field.ConstantValue!, duplicatedField.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumsShouldHaveZeroValue.cs (3)
127CheckNonFlags(symbol, zeroValuedFields, context.ReportDiagnostic); 152context.ReportDiagnostic(zeroValuedFields[0].CreateDiagnostic(RuleRename, namedType.Name, zeroValuedFields[0].Name)); 161context.ReportDiagnostic(namedType.CreateDiagnostic(RuleMultipleZero, namedType.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32.cs (1)
81context.ReportDiagnostic(symbol.CreateDiagnostic(Rule, symbol.Name, symbol.EnumUnderlyingType));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttribute.cs (2)
106symbolContext.ReportDiagnostic(symbol.CreateDiagnostic(Rule2217, symbol.Name, missingValuesString)); 115symbolContext.ReportDiagnostic(symbol.CreateDiagnostic(Rule1027, symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.cs (2)
100context.ReportDiagnostic(namedType.CreateDiagnostic(ImplementIEquatableDescriptor, namedType)); 105context.ReportDiagnostic(namedType.CreateDiagnostic(OverridesObjectEqualsDescriptor, namedType));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EventsShouldNotHaveBeforeOrAfterPrefix.cs (1)
61context.ReportDiagnostic(context.Symbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ExceptionsShouldBePublic.cs (1)
82saContext.ReportDiagnostic(symbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldDifferByMoreThanCase.cs (2)
87CheckParameterMembers(members, context.ReportDiagnostic); 90CheckTypeMembers(members, context.ReportDiagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectPrefix.cs (2)
79static (context, diagnostic) => context.ReportDiagnostic(diagnostic), 87static (context, diagnostic) => context.ReportDiagnostic(diagnostic),
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldHaveCorrectSuffix.cs (3)
162context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(rule, namedTypeSymbol.ToDisplayString(), typesSuffixes[0], 175context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(rule, namedTypeSymbol.ToDisplayString(), interfaceSuffixes[0], 196context.ReportDiagnostic(eventSymbol.CreateDiagnostic(OneSuffixRule, eventSymbol.Type.Name, EventHandlerString));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainTypeNames.cs (1)
133context.ReportDiagnostic(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.cs (8)
144symbolAnalysisContext.ReportDiagnostic(symbol.CreateDiagnostic(NamespaceRule, symbol.ToDisplayString())); 166symbolAnalysisContext.ReportDiagnostic(symbol.CreateDiagnostic(TypeRule, symbol.ToDisplayString())); 175symbolAnalysisContext.ReportDiagnostic(symbol.CreateDiagnostic(MemberRule, symbol.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 219symbolAnalysisContext.ReportDiagnostic(symbol.CreateDiagnostic(MemberRule, symbol.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat))); 262symbolAnalysisContext.ReportDiagnostic(parameter.CreateDiagnostic(DelegateParameterRule, containingType.ToDisplayString(), parameter.Name)); 267symbolAnalysisContext.ReportDiagnostic(parameter.CreateDiagnostic(MemberParameterRule, parameter.ContainingSymbol.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), parameter.Name)); 284symbolAnalysisContext.ReportDiagnostic(typeParameter.CreateDiagnostic(TypeTypeParameterRule, containingSymbol.ToDisplayString(), typeParameter.Name)); 289symbolAnalysisContext.ReportDiagnostic(typeParameter.CreateDiagnostic(MethodTypeParameterRule, containingSymbol.ToDisplayString(SymbolDisplayFormat.CSharpErrorMessageFormat), typeParameter.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotHaveIncorrectSuffix.cs (10)
165symbolAnalysisContext.ReportDiagnostic( 176symbolAnalysisContext.ReportDiagnostic( 184symbolAnalysisContext.ReportDiagnostic( 194symbolAnalysisContext.ReportDiagnostic( 201symbolAnalysisContext.ReportDiagnostic( 210symbolAnalysisContext.ReportDiagnostic( 217symbolAnalysisContext.ReportDiagnostic( 259context.ReportDiagnostic( 275context.ReportDiagnostic( 283context.ReportDiagnostic(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotMatchKeywords.cs (4)
166context.ReportDiagnostic(diagnostic); 183context.ReportDiagnostic( 207context.ReportDiagnostic( 234context.ReportDiagnostic(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementIDisposableCorrectly.cs (7)
286context.ReportDiagnostic(type.CreateDiagnostic(IDisposableReimplementationRule, type.Name, type.BaseType!.Name)); 298context.ReportDiagnostic(method.CreateDiagnostic(DisposeSignatureRule, $"{type.Name}.{method.Name}")); 309context.ReportDiagnostic(method.CreateDiagnostic(RenameDisposeRule, $"{type.Name}.{method.Name}")); 332context.ReportDiagnostic(method.CreateDiagnostic(DisposeOverrideRule, $"{type.Name}.{method.Name}")); 348context.ReportDiagnostic(type.CreateDiagnostic(FinalizeOverrideRule, type.Name, baseTypeWithFinalizer.Name)); 358context.ReportDiagnostic(type.CreateDiagnostic(ProvideDisposeBoolRule, type.Name)); 369context.ReportDiagnostic(method.CreateDiagnostic(DisposeBoolSignatureRule, $"{type.Name}.{method.Name}"));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.cs (1)
138context.ReportDiagnostic(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.cs (1)
55static (context, diagnostic) => context.ReportDiagnostic(diagnostic),
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MovePInvokesToNativeMethodsClass.cs (1)
49static (context, diagnostic) => context.ReportDiagnostic(diagnostic),
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NestedTypesShouldNotBeVisible.cs (1)
132symbolAnalysisContext.ReportDiagnostic(nestedType.CreateDiagnostic(descriptor, nestedType.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\NonConstantFieldsShouldNotBeVisible.cs (1)
46obj.ReportDiagnostic(field.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.cs (5)
117symbolContext.ReportDiagnostic(CreateDiagnostic(PropertyRule, GetSymbolLocation(methodSymbol), AddAlternateText, IsTrueText, operatorName)); 121symbolContext.ReportDiagnostic(CreateDiagnostic(VisibilityRule, GetSymbolLocation(property), FixVisibilityText, IsTrueText, operatorName)); 162symbolContext.ReportDiagnostic(CreateDiagnostic(VisibilityRule, GetSymbolLocation(notPublicMethod), FixVisibilityText, notPublicMethod.Name, operatorName)); 170symbolContext.ReportDiagnostic(CreateDiagnostic(DefaultRule, GetSymbolLocation(methodSymbol), AddAlternateText, expectedGroup.AlternateMethod1, operatorName)); 175symbolContext.ReportDiagnostic(CreateDiagnostic(MultipleRule, GetSymbolLocation(methodSymbol), AddAlternateText, expectedGroup.AlternateMethod1, expectedGroup.AlternateMethod2, operatorName));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.cs (1)
98analysisContext.ReportDiagnostic(operator1.CreateDiagnostic(
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.cs (1)
48context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.cs (2)
88context.ReportDiagnostic(namedType.CreateDiagnostic(EqualsRule, namedType.Name)); 93context.ReportDiagnostic(namedType.CreateDiagnostic(OpEqualityRule, namedType.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.cs (3)
106context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(RuleBoth, namedTypeSymbol.Name, comparisonOperatorsString)); 110context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(RuleEquals, namedTypeSymbol.Name)); 114context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(RuleOperator, namedTypeSymbol.Name, comparisonOperatorsString));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclaration.cs (1)
127analysisContext.ReportDiagnostic(currentParameter.CreateDiagnostic(Rule, properties, methodSymbol.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat), currentParameter.Name, bestMatchParameter.Name, bestMatch.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat)));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertiesShouldNotBeWriteOnly.cs (1)
77context.ReportDiagnostic(property.CreateDiagnostic(descriptor, property.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertiesShouldNotReturnArrays.cs (1)
50context.ReportDiagnostic(symbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\PropertyNamesShouldNotMatchGetMethods.cs (1)
145context.ReportDiagnostic(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ProvideObsoleteAttributeMessage.cs (1)
76context.ReportDiagnostic(node.CreateDiagnostic(Rule, context.Symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\StaticHolderTypes.cs (1)
75context.ReportDiagnostic(symbol.CreateDiagnostic(Rule, symbol.Name));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.cs (1)
110ctx.ReportDiagnostic(ctx.Symbol.CreateDiagnostic(Rule, ctx.Symbol.Name, string.Join("', '", disposableFieldNamesBuilder.AsEnumerable_NonConcurrent().Order())));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStrings.cs (1)
130context.ReportDiagnostic(parameter.CreateDiagnostic(Rule, parameter.Name, method.ToDisplayString(SymbolDisplayFormats.ShortSymbolDisplayFormat)));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriPropertiesShouldNotBeStrings.cs (1)
108context.ReportDiagnostic(property.CreateDiagnostic(Rule, property.ToDisplayString(SymbolDisplayFormats.ShortSymbolDisplayFormat)));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriReturnValuesShouldNotBeStrings.cs (1)
108context.ReportDiagnostic(method.CreateDiagnostic(Rule, method.ToDisplayString(SymbolDisplayFormats.ShortSymbolDisplayFormat)));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseEventsWhereAppropriate.cs (1)
72symbolContext.ReportDiagnostic(diagnostic);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseGenericEventHandlerInstances.cs (3)
96symbolContext.ReportDiagnostic(namedType.CreateDiagnostic(RuleForDelegates, namedType.Name)); 123symbolContext.ReportDiagnostic(eventSymbol.CreateDiagnostic(RuleForEvents2, eventSymbol.Name)); 128symbolContext.ReportDiagnostic(eventSymbol.CreateDiagnostic(RuleForEvents, eventSymbol.Name, eventType.ToDisplayString()));
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UseIntegralOrStringArgumentForIndexers.cs (1)
106context.ReportDiagnostic(symbol.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.cs (1)
136context.ReportDiagnostic(field.CreateDiagnostic(Rule, field.Name));
Microsoft.CodeQuality.Analyzers\Maintainability\MakeTypesInternal.cs (1)
55context.ReportDiagnostic(identifier.CreateDiagnostic(Rule));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\DoNotDeclareEventFieldsAsVirtual.cs (1)
58context.ReportDiagnostic(eventSymbol.CreateDiagnostic(Rule, eventSymbol.Name));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.cs (2)
176context.ReportDiagnostic(candidate.CreateDiagnostic(Rule, candidate.Name)); 195context.ReportDiagnostic(candidatePropertyOrEvent.CreateDiagnostic(Rule, candidatePropertyOrEvent.Name));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\PreferJaggedArraysOverMultidimensional.cs (4)
76context.ReportDiagnostic(field.CreateDiagnostic(DefaultRule, field.Name)); 93context.ReportDiagnostic(property.CreateDiagnostic(DefaultRule, property.Name)); 113context.ReportDiagnostic(method.CreateDiagnostic(ReturnRule, method.Name, method.ReturnType)); 136context.ReportDiagnostic(parameter.CreateDiagnostic(DefaultRule, parameter.Name));
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.cs (2)
79context.ReportDiagnostic(member.CreateDiagnostic(Rule)); 85context.ReportDiagnostic(type.CreateDiagnostic(Rule));
Microsoft.NetCore.Analyzers\InteropServices\AvoidStringBuilderPInvokeParameters.cs (1)
64context.ReportDiagnostic(parameter.CreateDiagnostic(Rule, parameter.Name));
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DelegateInteropUsageAnalyzer.cs (1)
103AnalyzeMethod(context.ReportDiagnostic, (IMethodSymbol)context.Symbol);
Microsoft.NetCore.Analyzers\InteropServices\DisableRuntimeMarshallingAnalyzer.DisabledRuntimeMarshallingAssemblyAnalyzer.cs (4)
66AnalyzeMethod(context.ReportDiagnostic, property.AddMethod); 70AnalyzeMethod(context.ReportDiagnostic, property.RemoveMethod); 127AnalyzeMethodSignature(_autoLayoutCache, context.ReportDiagnostic, type.DelegateInvokeMethod!); 134AnalyzeMethod(context.ReportDiagnostic, method);
Microsoft.NetCore.Analyzers\InteropServices\DoNotUseOutAttributeStringPInvokeParameters.cs (1)
66context.ReportDiagnostic(parameter.CreateDiagnostic(Rule, parameter.Name));
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.cs (3)
99context.ReportDiagnostic(targetType.CreateDiagnostic(DynamicInterfaceCastableImplementationUnsupported)); 127context.ReportDiagnostic(targetType.CreateDiagnostic(InterfaceMembersMissingImplementation, targetType.ToDisplayString())); 144context.ReportDiagnostic(member.CreateDiagnostic(MembersDeclaredOnImplementationTypeMustBeStatic, propertyBag, member.ToDisplayString(), targetType.ToDisplayString()));
Microsoft.NetCore.Analyzers\InteropServices\PInvokeDiagnosticAnalyzer.cs (4)
125context.ReportDiagnostic(context.Symbol.CreateDiagnostic(RuleCA1401, methodSymbol.Name)); 149context.ReportDiagnostic(Diagnostic.Create(RuleCA2101, marshalAsLocation)); 155context.ReportDiagnostic(Diagnostic.Create(RuleCA2101, defaultLocation)); 165context.ReportDiagnostic(Diagnostic.Create(RuleCA2101, defaultLocation));
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructor.cs (1)
74context.ReportDiagnostic(constructor.CreateDiagnostic(Rule, type.Name));
Microsoft.NetCore.Analyzers\InteropServices\UseValidPlatformString.cs (1)
97static (context, diagnostic) => context.ReportDiagnostic(diagnostic),
Microsoft.NetCore.Analyzers\Performance\ConstantExpectedAnalyzer.cs (1)
171context.ReportDiagnostic(diagnostic);
Microsoft.NetCore.Analyzers\Performance\UseConcreteTypeAnalyzer.cs (1)
158Report(context.ReportDiagnostic, coll, context.Compilation);
Microsoft.NetCore.Analyzers\Runtime\AttributeStringLiteralsShouldParseCorrectly.cs (6)
88AnalyzeSymbol(saContext.ReportDiagnostic, symbol, saContext.CancellationToken); 95AnalyzeSymbols(saContext.ReportDiagnostic, namedType.TypeParameters, saContext.CancellationToken); 99AnalyzeSymbols(saContext.ReportDiagnostic, namedType.DelegateInvokeMethod.Parameters, saContext.CancellationToken); 110AnalyzeSymbols(saContext.ReportDiagnostic, methodSymbol.Parameters, saContext.CancellationToken); 111AnalyzeSymbols(saContext.ReportDiagnostic, methodSymbol.TypeParameters, saContext.CancellationToken); 120AnalyzeSymbols(saContext.ReportDiagnostic, propertySymbol.Parameters, saContext.CancellationToken);
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributes.cs (1)
52AnalyzeSymbol((INamedTypeSymbol)context.Symbol, attributeType, context.ReportDiagnostic);
Microsoft.NetCore.Analyzers\Runtime\DetectPreviewFeatureAnalyzer.cs (5)
534context.ReportDiagnostic(propertyOrMethodSymbol.CreateDiagnostic(StaticAbstractIsPreviewFeatureRule)); 950context.ReportDiagnostic(node.CreateDiagnostic(diagnosticDescriptorWithPlaceholdersForCustomMessage, diagnosticMessageArgument0, diagnosticMessageArgument1, url, customMessage)); 954context.ReportDiagnostic(node.CreateDiagnostic(diagnosticDescriptor, diagnosticMessageArgument0, diagnosticMessageArgument1, url)); 977context.ReportDiagnostic(symbolToRaiseDiagnosticOn.CreateDiagnostic(diagnosticDescriptorWithPlaceholdersForCustomMessage, diagnosticMessageArgument0, diagnosticMessageArgument1, url, customMessage)); 981context.ReportDiagnostic(symbolToRaiseDiagnosticOn.CreateDiagnostic(diagnosticDescriptor, diagnosticMessageArgument0, diagnosticMessageArgument1, url));
Microsoft.NetCore.Analyzers\Runtime\DisposableFieldsShouldBeDisposed.cs (1)
286symbolEndContext.ReportDiagnostic(diagnostic);
Microsoft.NetCore.Analyzers\Runtime\DoNotDefineFinalizersForTypesDerivedFromMemoryManager.cs (1)
52static (context, diagnostic) => context.ReportDiagnostic(diagnostic),
Microsoft.NetCore.Analyzers\Runtime\ModuleInitializerAttributeShouldNotBeUsedInLibraries.cs (1)
78context.ReportDiagnostic(attributeReference.GetSyntax(context.CancellationToken).CreateDiagnostic(Rule));
Microsoft.NetCore.Analyzers\Runtime\ProvideStreamMemoryBasedAsyncOverrides.cs (2)
84context.ReportDiagnostic(diagnostic); 90context.ReportDiagnostic(diagnostic);
Microsoft.NetCore.Analyzers\Runtime\SerializationRulesDiagnosticAnalyzer.cs (2)
123context.ReportDiagnostic(namedTypeSymbol.CreateDiagnostic(RuleCA2237, namedTypeSymbol.Name)); 170context.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Runtime\UseThreadStaticCorrectly.cs (1)
82context.ReportDiagnostic(symbol.CreateDiagnostic(ThreadStaticOnNonStaticFieldRule));
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInSerializableTypeAnalyzer.cs (1)
188symbolAnalysisContext.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Security\DataSetDataTableInWebSerializableObjectGraphAnalyzer.cs (1)
118symbolAnalysisContext.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Security\DoNotDisableRequestValidation.cs (1)
83symbolAnalysisContext.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Security\SetViewStateUserKey.cs (1)
75symbolAnalysisContext.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Security\UseDefaultDllImportSearchPathsAttribute.cs (1)
143symbolAnalysisContext.ReportDiagnostic(
Microsoft.NetCore.Analyzers\Usage\ImplementGenericMathInterfacesCorrectly.cs (2)
70context.ReportDiagnostic(CreateDiagnostic(GMIRule, typeParameter, anInterface.OriginalDefinition.ToDisplayString( 85context.ReportDiagnostic(CreateDiagnostic(GMIRule, typeParameter, symbol.BaseType!.OriginalDefinition.ToDisplayString(
Microsoft.NetFramework.Analyzers\DoNotUseInsecureDtdProcessingInApiDesign.cs (2)
419context.ReportDiagnostic( 459context.ReportDiagnostic(
Microsoft.NetFramework.Analyzers\MarkVerbHandlersWithValidateAntiforgeryTokenAnalyzer.cs (5)
130symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(NoVerbsRule, methodSymbol.MetadataName)); 135symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(NoVerbsNoTokenRule, methodSymbol.MetadataName)); 145symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(GetAndTokenRule, methodSymbol.MetadataName)); 150symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(GetAndOtherAndTokenRule, methodSymbol.MetadataName)); 159symbolContext.ReportDiagnostic(methodSymbol.CreateDiagnostic(VerbsAndNoTokenRule, methodSymbol.MetadataName));
Microsoft.NetFramework.Analyzers\TypesShouldNotExtendCertainBaseTypes.cs (1)
79saContext.ReportDiagnostic(diagnostic);
Microsoft.DotNet.CodeAnalysis (1)
Analyzers\PinvokeAnalyzer.cs (1)
163context.ReportDiagnostic(Diagnostic.Create(InvalidPinvokeCall, synref.GetSyntax().GetLocation(), data.ModuleName + "!" + (data.EntryPointName ?? methodSymbol.Name), altMsg));
Microsoft.Interop.ComInterfaceGenerator (12)
Analyzers\AddGeneratedComClassAnalyzer.cs (2)
51context.ReportDiagnostic(type.CreateDiagnostic(AddGeneratedComClassAttribute, type.Name)); 59context.ReportDiagnostic(type.CreateDiagnostic(AddGeneratedComClassAttribute, type.Name));
Analyzers\ComClassGeneratorDiagnosticsAnalyzer.cs (1)
59context.ReportDiagnostic(diagnostic);
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (4)
130context.ReportDiagnostic(diag.ToDiagnostic()); 152context.ReportDiagnostic(diag.ToDiagnostic()); 163context.ReportDiagnostic(diag.ToDiagnostic()); 201context.ReportDiagnostic(diag.ToDiagnostic());
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
145context.ReportDiagnostic(type.CreateDiagnostic(ConvertToGeneratedComInterface, properties.ToImmutable(), type.Name));
Analyzers\GeneratedComInterfaceAttributeAnalyzer.cs (1)
44context.ReportDiagnostic(comInterfaceAttribute.CreateDiagnosticInfo(GeneratorDiagnostics.InterfaceTypeNotSupported, unsupportedValue).ToDiagnostic());
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (3)
86context.ReportDiagnostic(invalidMethodDiagnostic.ToDiagnostic()); 96context.ReportDiagnostic(diag.ToDiagnostic()); 103context.ReportDiagnostic(diag.ToDiagnostic());
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (2)
125context.ReportDiagnostic(invalidMethodDiagnostic.ToDiagnostic()); 131context.ReportDiagnostic(diagnostic.ToDiagnostic());
Microsoft.Interop.LibraryImportGenerator (3)
Analyzers\ConvertToLibraryImportAnalyzer.cs (1)
89context.ReportDiagnostic(method.CreateDiagnosticInfo(ConvertToLibraryImport, properties.ToImmutable(), method.Name).ToDiagnostic());
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (2)
171context.ReportDiagnostic(invalidMethodDiagnostic.ToDiagnostic()); 191context.ReportDiagnostic(diagnostic.ToDiagnostic());
Microsoft.Interop.LibraryImportGenerator.Downlevel (2)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (2)
172context.ReportDiagnostic(invalidMethodDiagnostic.ToDiagnostic()); 190context.ReportDiagnostic(diagnostic.ToDiagnostic());
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
133context.ReportDiagnostic(Diagnostic.Create(Rule, method.Locations[0]));
Microsoft.ML.InternalCodeAnalyzer (4)
BaseTestClassAnalyzer.cs (1)
78context.ReportDiagnostic(Diagnostic.Create(Rule, namedType.Locations[0], namedType));
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
67context.ReportDiagnostic(diagnostic);
InstanceInitializerAnalyzer.cs (2)
60context.ReportDiagnostic(diagnostic); 76context.ReportDiagnostic(diagnostic);
Roslyn.Diagnostics.Analyzers (19)
AbstractDoNotCopyValue.cs (2)
283_context.ReportDiagnostic(symbol.CreateDiagnostic(NoFieldOfCopyableTypeRule, symbol.Type, symbol)); 341_context.ReportDiagnostic(symbol.CreateDiagnostic(NoAutoPropertyRule, symbol.Type, symbol));
DefaultableTypeShouldHaveDefaultableFieldsAnalyzer.cs (1)
107originalContext.ReportDiagnostic(field.CreateDiagnostic(Rule, field.ContainingType, sourceSymbol.Name));
DoNotMixAttributesFromDifferentVersionsOfMEF.cs (2)
123symbolContext.ReportDiagnostic(symbolContext.Symbol.CreateDiagnostic(Rule, problematicAttribute.AttributeClass.Name, exportedType.Name)); 130symbolContext.ReportDiagnostic(diagnostic);
ExportedPartsShouldHaveImportingConstructor.cs (3)
110context.ReportDiagnostic( 130context.ReportDiagnostic( 149context.ReportDiagnostic(constructor.DeclaringSyntaxReferences.CreateDiagnostic(Rule, properties, context.CancellationToken, namedType.Name));
ImportingConstructorShouldBeObsolete.cs (6)
125context.ReportDiagnostic(attributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, ScenarioProperties.MissingDescription, context.CancellationToken, namedType.Name)); 131context.ReportDiagnostic(attributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, ScenarioProperties.MissingError, context.CancellationToken, namedType.Name)); 137context.ReportDiagnostic(attributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, context.CancellationToken, namedType.Name)); 145context.ReportDiagnostic(attributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, ScenarioProperties.IncorrectDescription, context.CancellationToken, namedType.Name)); 152context.ReportDiagnostic(attributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, ScenarioProperties.ErrorSetToFalse, context.CancellationToken, namedType.Name)); 162context.ReportDiagnostic(importingConstructorAttributeData.ApplicationSyntaxReference.CreateDiagnostic(Rule, ScenarioProperties.MissingAttribute, context.CancellationToken, namedType.Name));
IRemoteJsonServiceParameterAnalyzer.cs (1)
87context.ReportDiagnostic(diagnostic);
PartsExportedWithMEFv2MustBeMarkedAsShared.cs (2)
67symbolContext.ReportDiagnostic(symbolContext.Symbol.CreateDiagnostic(Rule, namedType.Name)); 72symbolContext.ReportDiagnostic(exportAttributeApplication.ApplicationSyntaxReference.CreateDiagnostic(Rule, symbolContext.CancellationToken, namedType.Name));
TestExportsShouldNotBeDiscoverable.cs (2)
91context.ReportDiagnostic(context.Symbol.CreateDiagnostic(Rule, namedType.Name)); 96context.ReportDiagnostic(exportAttributeApplication.ApplicationSyntaxReference.CreateDiagnostic(Rule, context.CancellationToken, namedType.Name));
System.Windows.Forms.Analyzers.CSharp (1)
System\Windows\Forms\CSharp\Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationAnalyzer.cs (1)
103context.ReportDiagnostic(diagnostic);
System.Windows.Forms.Analyzers.VisualBasic (1)
Analyzers\MissingPropertySerializationConfiguration\MissingPropertySerializationConfigurationDiagnosticAnalyzer.vb (1)
101context.ReportDiagnostic(diagnostic)