164 references to SyntaxAnnotation
Microsoft.CodeAnalysis (2)
Syntax\SyntaxAnnotation.cs (2)
28public static SyntaxAnnotation ElasticAnnotation { get; } = new SyntaxAnnotation(); 44: this()
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractSpeculationAnalyzer.cs (1)
185var annotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CodeStyle.Fixes (9)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
102var annotation = new SyntaxAnnotation();
AbstractRemoveUnusedValuesCodeFixProvider.cs (4)
58private static readonly SyntaxAnnotation s_memberAnnotation = new(); 59private static readonly SyntaxAnnotation s_newLocalDeclarationStatementAnnotation = new(); 60private static readonly SyntaxAnnotation s_unusedLocalDeclarationAnnotation = new(); 61private static readonly SyntaxAnnotation s_existingLocalDeclarationWithoutInitializerAnnotation = new();
IIndentationService.cs (1)
47var annotation = new SyntaxAnnotation();
SimplificationHelpers.cs (2)
15public static readonly SyntaxAnnotation DontSimplifyAnnotation = new(); 16public static readonly SyntaxAnnotation SimplifyModuleNameAnnotation = new();
UseConditionalExpressionHelpers.cs (1)
13public static readonly SyntaxAnnotation SpecializedFormattingAnnotation = new();
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
AnalyzedPattern.cs (1)
27private static readonly SyntaxAnnotation s_annotation = new();
CSharpUseImplicitTypeHelper.cs (1)
192var annotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
ConvertNamespaceTransform.cs (2)
53var annotation = new SyntaxAnnotation(); 76var annotation = new SyntaxAnnotation();
CSharpInlineDeclarationCodeFixProvider.cs (1)
361var annotation = new SyntaxAnnotation();
CSharpSyntaxFactsService.cs (1)
38private static readonly SyntaxAnnotation s_annotation = new();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
48private static readonly SyntaxAnnotation s_openBracePositionAnnotation = new(); 53private static readonly SyntaxAnnotation s_replacementNodeAnnotation = new();
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
162var plusEqualsTokenAnnotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CSharp.Features (17)
AnalyzedPattern.cs (1)
27private static readonly SyntaxAnnotation s_annotation = new();
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
31private static readonly SyntaxAnnotation s_delegateToReplaceAnnotation = new();
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (3)
31private static readonly SyntaxAnnotation DefinitionAnnotation = new(); 32private static readonly SyntaxAnnotation ReferenceAnnotation = new(); 33private static readonly SyntaxAnnotation ExpressionAnnotation = new();
ConvertNamespaceTransform.cs (2)
53var annotation = new SyntaxAnnotation(); 76var annotation = new SyntaxAnnotation();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
74var annotation = new SyntaxAnnotation();
CSharpInlineDeclarationCodeFixProvider.cs (1)
361var annotation = new SyntaxAnnotation();
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
50var tempAnnotation = new SyntaxAnnotation();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (2)
203var sourceNodeAnnotation = new SyntaxAnnotation(); 204var enclosingStatementAnnotation = new SyntaxAnnotation();
ExtractMethod\CSharpSelectionResult.cs (2)
38var firstTokenAnnotation = new SyntaxAnnotation(); 39var lastTokenAnnotation = new SyntaxAnnotation();
IntroduceVariable\CSharpIntroduceVariableService.Rewriter.cs (1)
18private readonly SyntaxAnnotation _replacementAnnotation = new SyntaxAnnotation();
SplitStringLiteral\StringSplitter.cs (1)
17protected readonly SyntaxAnnotation RightNodeAnnotation = new();
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
39private static readonly SyntaxAnnotation s_referenceAnnotation = new();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (23)
IncrementalParsing\IncrementalParsingTests.cs (1)
2681var oldRoot = tempRoot.ReplaceToken(tempToken, tempToken.WithAdditionalAnnotations(new SyntaxAnnotation()));
Syntax\SerializationTests.cs (2)
65var annotation = new SyntaxAnnotation(); 89var annotation = new SyntaxAnnotation();
Syntax\SyntaxAnnotationTests.cs (19)
33SyntaxAnnotation annotation = new SyntaxAnnotation(); 43SyntaxAnnotation annotation = new SyntaxAnnotation(); 132SyntaxAnnotation annotation = new SyntaxAnnotation(); 142SyntaxAnnotation annotation = new SyntaxAnnotation(); 157SyntaxAnnotation annotation1 = new SyntaxAnnotation(); 158SyntaxAnnotation annotation2 = new SyntaxAnnotation(); 189SyntaxAnnotation annotation1 = new SyntaxAnnotation(); 190SyntaxAnnotation annotation2 = new SyntaxAnnotation(); 221SyntaxAnnotation annotation1 = new SyntaxAnnotation(); 222SyntaxAnnotation annotation2 = new SyntaxAnnotation(); 255var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 3).Select(_ => new SyntaxAnnotation())); 281SyntaxAnnotation annotation1 = new SyntaxAnnotation(); 385var annotations = new List<SyntaxAnnotation>(Enumerable.Range(0, 10).Select(_ => new SyntaxAnnotation())); 480var rootAnnotation = new SyntaxAnnotation(); 488var annotation = new SyntaxAnnotation(); 504var firstAnnotation = new SyntaxAnnotation(); 505var secondAnnotation = new SyntaxAnnotation(); 564var annotation = new SyntaxAnnotation(); 578var annotation = new SyntaxAnnotation();
Syntax\SyntaxNodeTests.cs (1)
491var myAnnotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpSyntaxFactsService.cs (1)
38private static readonly SyntaxAnnotation s_annotation = new();
CSharpUseImplicitTypeHelper.cs (1)
192var annotation = new SyntaxAnnotation();
Rename\CSharpRenameRewriterLanguageService.cs (1)
292var annotation = new SyntaxAnnotation();
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
47var annotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (2)
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
79var typeAnnotation = new SyntaxAnnotation();
Snippets\CSharpSnippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (1)
28var typeAnnotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.Features (31)
AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
102var annotation = new SyntaxAnnotation();
AbstractRemoveUnusedValuesCodeFixProvider.cs (4)
58private static readonly SyntaxAnnotation s_memberAnnotation = new(); 59private static readonly SyntaxAnnotation s_newLocalDeclarationStatementAnnotation = new(); 60private static readonly SyntaxAnnotation s_unusedLocalDeclarationAnnotation = new(); 61private static readonly SyntaxAnnotation s_existingLocalDeclarationWithoutInitializerAnnotation = new();
AddImport\References\Reference.cs (1)
92var annotation = new SyntaxAnnotation();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
43var annotation = new SyntaxAnnotation();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
68protected static SyntaxAnnotation ContainerAnnotation { get; } = new SyntaxAnnotation();
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
25private readonly SyntaxAnnotation _annotation = new(); 26private readonly SyntaxAnnotation _otherAnnotation = new();
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
176var declarationAnnotation = new SyntaxAnnotation(); 243new SyntaxAnnotation(),
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
43.ToDictionary(location => location, _ => new SyntaxAnnotation());
ExtractMethod\ExtractMethodResult.cs (1)
89var annotation = new SyntaxAnnotation();
ExtractMethod\InsertionPoint.cs (1)
22var annotation = new SyntaxAnnotation();
ExtractMethod\MethodExtractor.CodeGenerator.cs (3)
55MethodNameAnnotation = new SyntaxAnnotation(); 56CallSiteAnnotation = new SyntaxAnnotation(); 57MethodDefinitionAnnotation = new SyntaxAnnotation();
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
184private readonly SyntaxAnnotation _annotation = new();
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
24private static readonly SyntaxAnnotation s_specializedFormattingAnnotation = new();
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
32private static readonly SyntaxAnnotation s_annotation = new();
J\s\src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs\UseConditionalExpressionHelpers.cs (1)
13public static readonly SyntaxAnnotation SpecializedFormattingAnnotation = new();
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
66var typeNodeAnnotation = new SyntaxAnnotation(); 90var annotation = new SyntaxAnnotation();
Shared\Utilities\ExtractTypeHelpers.cs (2)
41var typeAnnotation = new SyntaxAnnotation(); 103var typeAnnotation = new SyntaxAnnotation();
Snippets\SnippetFunctionService.cs (1)
143var typeAnnotation = new SyntaxAnnotation();
Snippets\SnippetProviders\AbstractSnippetProvider.cs (2)
31protected readonly SyntaxAnnotation _cursorAnnotation = new(); 32protected readonly SyntaxAnnotation _findSnippetAnnotation = new();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
34protected static SyntaxAnnotation SpecializedFormattingAnnotation = new();
Wrapping\AbstractCodeActionComputer.cs (1)
45private static readonly SyntaxAnnotation s_toFormatAnnotation = new();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
SpeculationAnalyzer.vb (1)
87Dim originalExprAnnotation = New SyntaxAnnotation()
VisualBasicRemoveUnnecessaryImportsRewriter.vb (1)
18Private ReadOnly _annotation As New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
ParameterSyntaxExtensions.vb (1)
18Dim annotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (1)
23Private Shared ReadOnly GeneratedSymbolAnnotation As SyntaxAnnotation = New SyntaxAnnotation()
Utilities\CommandHandlers\AbstractImplementAbstractClassOrInterfaceCommandHandler.vb (1)
152Dim tokenAnnotation As New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.Features (12)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (4)
116Private Shared ReadOnly s_definitionAnnotation As New SyntaxAnnotation 117Private Shared ReadOnly s_referenceAnnotation As New SyntaxAnnotation 118Private Shared ReadOnly s_initializerAnnotation As New SyntaxAnnotation 119Private Shared ReadOnly s_expressionToInlineAnnotation As New SyntaxAnnotation
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
44Dim annotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
20Private Shared ReadOnly s_removeAnnotation As SyntaxAnnotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (2)
132Dim sourceNodeAnnotation = New SyntaxAnnotation() 133Dim enclosingStatementAnnotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicSelectionResult.vb (2)
33Dim firstAnnotation = New SyntaxAnnotation() 34Dim lastAnnotation = New SyntaxAnnotation()
IntroduceVariable\VisualBasicIntroduceVariableService.Rewriter.vb (1)
14Private ReadOnly _replacementAnnotation As New SyntaxAnnotation
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceLocal.vb (1)
125Dim localAnnotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (22)
IncrementalParser\IncrementalParser.vb (1)
1713Dim oldRoot2 = tempRoot2.ReplaceToken(tempToken2, tempToken2.WithAdditionalAnnotations(New SyntaxAnnotation()))
Syntax\SerializationTests.vb (2)
71Dim annotation = New SyntaxAnnotation() 97Dim annotation = New SyntaxAnnotation()
Syntax\SyntaxAnnotationTests.vb (19)
30Dim annotation = New SyntaxAnnotation() 38Dim annotation = New SyntaxAnnotation() 120Dim annotation As New SyntaxAnnotation() 129Dim annotation As New SyntaxAnnotation() 143Dim annotation1 As New SyntaxAnnotation() 144Dim annotation2 As New SyntaxAnnotation() 174Dim annotation1 As New SyntaxAnnotation() 175Dim annotation2 As New SyntaxAnnotation() 205Dim annotation1 As New SyntaxAnnotation() 206Dim annotation2 As New SyntaxAnnotation() 239Return New SyntaxAnnotation() 263Dim annotation1 As New SyntaxAnnotation() 357Dim annotations = New List(Of SyntaxAnnotation)(Enumerable.Range(0, 10).Select(Function(s) New SyntaxAnnotation())) 442Dim rootAnnotation = New SyntaxAnnotation() 449Dim annotation = New SyntaxAnnotation() 464Dim firstAnnotation = New SyntaxAnnotation() 465Dim secondAnnotation = New SyntaxAnnotation() 517Dim annotation = New SyntaxAnnotation() 529Dim annotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
ParameterSyntaxExtensions.vb (1)
18Dim annotation = New SyntaxAnnotation()
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
187Dim annotation = New SyntaxAnnotation() 210Dim annotationForSpeculativeNode = New SyntaxAnnotation()
SpeculationAnalyzer.vb (1)
87Dim originalExprAnnotation = New SyntaxAnnotation()
VisualBasicRemoveUnnecessaryImportsRewriter.vb (1)
18Private ReadOnly _annotation As New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\FormattingTests.vb (1)
3775Dim goo As New SyntaxAnnotation()
Microsoft.CodeAnalysis.Workspaces (13)
AbstractSpeculationAnalyzer.cs (1)
185var annotation = new SyntaxAnnotation();
CaseCorrection\CaseCorrector.cs (1)
22public static readonly SyntaxAnnotation Annotation = new();
Editing\ImportAdderService.cs (1)
150var annotation = new SyntaxAnnotation();
Formatting\Formatter.cs (1)
31public static SyntaxAnnotation Annotation { get; } = new SyntaxAnnotation();
IIndentationService.cs (1)
47var annotation = new SyntaxAnnotation();
Simplification\AbstractSimplificationService.cs (3)
112var removeIfUnusedAnnotation = new SyntaxAnnotation(); 224var annotation = new SyntaxAnnotation(); 242var marker = new SyntaxAnnotation();
Simplification\Simplifier.cs (3)
45public static SyntaxAnnotation Annotation { get; } = new SyntaxAnnotation(); 51public static SyntaxAnnotation SpecialTypeAnnotation { get; } = new SyntaxAnnotation(); 57public static SyntaxAnnotation AddImportsAnnotation { get; } = new SyntaxAnnotation();
SimplificationHelpers.cs (2)
15public static readonly SyntaxAnnotation DontSimplifyAnnotation = new(); 16public static readonly SyntaxAnnotation SimplifyModuleNameAnnotation = new();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
CodeCleanup\CodeCleanupTests.cs (2)
137var annotation = new SyntaxAnnotation(); 150var annotation = new SyntaxAnnotation();
SolutionTests\SolutionTests.cs (2)
2542var annotation = new SyntaxAnnotation(); 4308var newRoot = root.WithAdditionalAnnotations(new SyntaxAnnotation());
WorkspaceTests\AdhocWorkspaceTests.cs (1)
369var newRoot = root.WithAdditionalAnnotations(new SyntaxAnnotation());
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
204var annotation = new SyntaxAnnotation();
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\AbstractCodeModelService.cs (2)
1070var annotation = new SyntaxAnnotation(); 1123var annotation = new SyntaxAnnotation();