20 references to RenameAnnotation
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
88
var annotation = diagnostics.Length == 1 ?
RenameAnnotation
.Create() : null;
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
92
indexVariable.WithAdditionalAnnotations(
RenameAnnotation
.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
58
newNameToken.WithAdditionalAnnotations(
RenameAnnotation
.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
73
newLocalNameToken.WithAdditionalAnnotations(
RenameAnnotation
.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (1)
36
newLocalNameToken.WithAdditionalAnnotations(
RenameAnnotation
.Create()),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
221
.WithAdditionalAnnotations(
RenameAnnotation
.Create());
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (2)
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.Fixer.cs (1)
157
SyntaxAnnotation renameIdentifierAnnotation =
RenameAnnotation
.Create();
Microsoft.NetCore.Analyzers\Performance\CSharpUseSearchValues.Fixer.cs (1)
41
var newDeclarator = declarator.ReplaceToken(declarator.Identifier, declarator.Identifier.WithAdditionalAnnotations(
RenameAnnotation
.Create()));
Microsoft.CodeAnalysis.Features (10)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
135
invocationNameToken.Value.WithAdditionalAnnotations(
RenameAnnotation
.Create()));
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
229
? g.Identifier(className).WithAdditionalAnnotations(
RenameAnnotation
.Create())
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
116
var collectionVariableToken = generator.Identifier(collectionVariable.ToString()).WithAdditionalAnnotations(
RenameAnnotation
.Create());
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
361
foreachIdentifier = foreachIdentifier.WithAdditionalAnnotations(
RenameAnnotation
.Create());
365
var foreachIdentifierReference = foreachIdentifier.WithoutAnnotations(
RenameAnnotation
.Kind).WithoutTrivia();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
257
var newRoot = root.ReplaceToken(token, token.WithAdditionalAnnotations(
RenameAnnotation
.Create()));
410
structNameToken = structNameToken.WithAdditionalAnnotations(
RenameAnnotation
.Create());
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
672
.WithAdditionalAnnotations(
RenameAnnotation
.Create()));
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
120
nameToken.WithAdditionalAnnotations(
RenameAnnotation
.Create()),
src\roslyn\src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
88
var annotation = diagnostics.Length == 1 ?
RenameAnnotation
.Create() : null;
System.Text.RegularExpressions.Generator (2)
UpgradeToGeneratedRegexCodeFixer.cs (2)
183
.WithAdditionalAnnotations(
RenameAnnotation
.Create());
217
(TypeSyntax)generator.TypeExpression(regexSymbol), SyntaxFactory.Identifier(variableDeclarator.Identifier.ValueText).WithAdditionalAnnotations(
RenameAnnotation
.Create()))