23 references to RenameAnnotation
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
89var annotation = diagnostics.Length == 1 ? RenameAnnotation.Create() : null;
Microsoft.CodeAnalysis.CSharp.Features (5)
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
92indexVariable.WithAdditionalAnnotations(RenameAnnotation.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
51newNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
69newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (1)
37newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
221.WithAdditionalAnnotations(RenameAnnotation.Create());
Microsoft.CodeAnalysis.EditorFeatures (1)
CodeActions\CodeActionEditHandlerService.cs (1)
336var renameToken = root.GetAnnotatedTokens(RenameAnnotation.Kind).FirstOrNull();
Microsoft.CodeAnalysis.Features (10)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
134invocationNameToken.Value.WithAdditionalAnnotations(RenameAnnotation.Create()));
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (1)
229? g.Identifier(className).WithAdditionalAnnotations(RenameAnnotation.Create())
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
116var collectionVariableToken = generator.Identifier(collectionVariable.ToString()).WithAdditionalAnnotations(RenameAnnotation.Create());
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (2)
359foreachIdentifier = foreachIdentifier.WithAdditionalAnnotations(RenameAnnotation.Create()); 363var foreachIdentifierReference = foreachIdentifier.WithoutAnnotations(RenameAnnotation.Kind).WithoutTrivia();
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
257var newRoot = root.ReplaceToken(token, token.WithAdditionalAnnotations(RenameAnnotation.Create())); 410structNameToken = structNameToken.WithAdditionalAnnotations(RenameAnnotation.Create());
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
656.WithAdditionalAnnotations(RenameAnnotation.Create()));
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
121nameToken.WithAdditionalAnnotations(RenameAnnotation.Create()),
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
89var annotation = diagnostics.Length == 1 ? RenameAnnotation.Create() : null;
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (1)
66var renamedToken = root.GetAnnotatedTokens(RenameAnnotation.Kind).FirstOrNull();
Microsoft.CodeAnalysis.VisualBasic.Features (4)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
95DirectCast(generator.IdentifierName(indexVariable.WithAdditionalAnnotations(RenameAnnotation.Create())), VisualBasicSyntaxNode),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
211SyntaxFactory.SingletonSeparatedList(SyntaxFactory.ModifiedIdentifier(newNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()))),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
37SyntaxFactory.SingletonSeparatedList(SyntaxFactory.ModifiedIdentifier(newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()))),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceQueryLocal.vb (1)
29SyntaxFactory.ModifiedIdentifier(newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.Create()))),
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
190newMethod = newMethod.ReplaceToken(newMethod.Identifier, SyntaxFactory.Identifier(methodName).WithAdditionalAnnotations(RenameAnnotation.Create()));