22 references to ConflictAnnotation
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
139
ConflictAnnotation
.Create(CodeFixesResources.Related_method_signatures_found_in_metadata_will_not_be_updated));
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
103
_classIdentifier.WithAdditionalAnnotations(
ConflictAnnotation
.Create(
Microsoft.CodeAnalysis.CSharp.Features (4)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
131
=>
ConflictAnnotation
.Create(FeaturesResources.Conflict_s_detected);
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
483
var annotation =
ConflictAnnotation
.Create(FeaturesResources.Conflict_s_detected);
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (2)
324
var annotation =
ConflictAnnotation
.Create(FeaturesResources.Only_methods_with_a_single_argument_which_is_not_an_out_variable_declaration_can_be_replaced_with_a_property);
383
var annotation =
ConflictAnnotation
.Create(FeaturesResources.Non_invoked_method_cannot_be_replaced_with_property);
Microsoft.CodeAnalysis.EditorFeatures (3)
Preview\AbstractPreviewFactoryService.cs (3)
444
var conflictNodes = newRoot.GetAnnotatedNodesAndTokens(
ConflictAnnotation
.Kind);
446
var conflictDescriptions = conflictNodes.SelectMany(n => n.GetAnnotations(
ConflictAnnotation
.Kind))
447
.Select(a => $"❌ {
ConflictAnnotation
.GetDescription(a)}")
Microsoft.CodeAnalysis.Features (8)
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (2)
261
ConflictAnnotation
.Create(FeaturesResources.Method_referenced_implicitly)));
301
ConflictAnnotation
.Create(FeaturesResources.Method_referenced_implicitly)));
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
440
token = token.WithAdditionalAnnotations(
ConflictAnnotation
.Create(conflictMessage));
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (3)
264
ConflictAnnotation
.Create(FeaturesResources.Property_referenced_implicitly)));
269
ConflictAnnotation
.Create(FeaturesResources.Property_reference_cannot_be_updated)));
274
ConflictAnnotation
.Create(FeaturesResources.Property_reference_cannot_be_updated)));
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (1)
139
ConflictAnnotation
.Create(CodeFixesResources.Related_method_signatures_found_in_metadata_will_not_be_updated));
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (1)
103
_classIdentifier.WithAdditionalAnnotations(
ConflictAnnotation
.Create(
Microsoft.CodeAnalysis.VisualBasic.Features (5)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.ReferenceRewriter.vb (1)
53
ConflictAnnotation
.Create(FeaturesResources.Conflict_s_detected)))
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (3)
201
Dim conflicts = newScope.GetAnnotatedNodesAndTokens(
ConflictAnnotation
.Kind)
202
Dim declaratorConflicts = modifiedIdentifier.GetAnnotatedNodesAndTokens(
ConflictAnnotation
.Kind)
466
.WithAdditionalAnnotations(
ConflictAnnotation
.Create(FeaturesResources.Conflict_s_detected))
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (1)
184
Dim annotation =
ConflictAnnotation
.Create(FeaturesResources.Non_invoked_method_cannot_be_replaced_with_property)