20 references to Create
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
89
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)
51
newNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceLocal.cs (1)
69
newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()),
IntroduceVariable\CSharpIntroduceVariableService_IntroduceQueryLocal.cs (1)
37
newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()),
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
221
.WithAdditionalAnnotations(RenameAnnotation.
Create
());
Microsoft.CodeAnalysis.Features (9)
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
134
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 (1)
359
foreachIdentifier = foreachIdentifier.WithAdditionalAnnotations(RenameAnnotation.
Create
());
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
257
var newRoot = root.ReplaceToken(token, token.WithAdditionalAnnotations(RenameAnnotation.
Create
()));
410
structNameToken = structNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
());
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (1)
656
.WithAdditionalAnnotations(RenameAnnotation.
Create
()));
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (1)
121
nameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()),
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (1)
89
var annotation = diagnostics.Length == 1 ? RenameAnnotation.
Create
() : null;
Microsoft.CodeAnalysis.VisualBasic.Features (4)
ConvertForEachToFor\VisualBasicConvertForEachToForCodeRefactoringProvider.vb (1)
95
DirectCast(generator.IdentifierName(indexVariable.WithAdditionalAnnotations(RenameAnnotation.
Create
())), VisualBasicSyntaxNode),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
211
SyntaxFactory.SingletonSeparatedList(SyntaxFactory.ModifiedIdentifier(newNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()))),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
37
SyntaxFactory.SingletonSeparatedList(SyntaxFactory.ModifiedIdentifier(newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()))),
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceQueryLocal.vb (1)
29
SyntaxFactory.ModifiedIdentifier(newLocalNameToken.WithAdditionalAnnotations(RenameAnnotation.
Create
()))),
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
190
newMethod = newMethod.ReplaceToken(newMethod.Identifier, SyntaxFactory.Identifier(methodName).WithAdditionalAnnotations(RenameAnnotation.
Create
()));