176 references to SyntaxAnnotation
Microsoft.CodeAnalysis (2)
Syntax\SyntaxAnnotation.cs (2)
22public static SyntaxAnnotation ElasticAnnotation { get; } = new SyntaxAnnotation(); 38: this()
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
211var annotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
102var annotation = new SyntaxAnnotation();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\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();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs (1)
13public static readonly SyntaxAnnotation SpecializedFormattingAnnotation = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
149var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
47var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (3)
111var removeIfUnusedAnnotation = new SyntaxAnnotation(); 237var annotation = new SyntaxAnnotation(); 255var marker = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (2)
15public static readonly SyntaxAnnotation DoNotSimplifyAnnotation = new(); 16public static readonly SyntaxAnnotation SimplifyModuleNameAnnotation = new();
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
29private static readonly SyntaxAnnotation s_annotation = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
192var annotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (3)
42var annotation = new SyntaxAnnotation(); 65var annotation = new SyntaxAnnotation(); 244var annotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
362var annotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
102var openBraceTokenAnnotation = new SyntaxAnnotation(); 103var nullTokenAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
54var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
58var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
79var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
57var dummyObjectAnnotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
29private static readonly SyntaxAnnotation s_annotation = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
38private static readonly SyntaxAnnotation s_annotation = new();
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (2)
51private static readonly SyntaxAnnotation s_openBracePositionAnnotation = new(); 56private static readonly SyntaxAnnotation s_replacementNodeAnnotation = new();
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (1)
36private static readonly SyntaxAnnotation s_plusEqualsTokenAnnotation = new();
Microsoft.CodeAnalysis.CSharp.Features (25)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
31private static readonly SyntaxAnnotation s_delegateToReplaceAnnotation = new();
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (3)
33private static readonly SyntaxAnnotation DefinitionAnnotation = new(); 34private static readonly SyntaxAnnotation ReferenceAnnotation = new(); 35private static readonly SyntaxAnnotation ExpressionAnnotation = new();
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (1)
110var constructorAnnotation = new SyntaxAnnotation();
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (1)
74var annotation = new SyntaxAnnotation();
EncapsulateField\CSharpEncapsulateFieldService.cs (1)
49var tempAnnotation = new SyntaxAnnotation();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (2)
163var sourceNodeAnnotation = new SyntaxAnnotation(); 164var enclosingStatementAnnotation = new SyntaxAnnotation();
ExtractMethod\CSharpSelectionResult.cs (2)
36var firstTokenAnnotation = new SyntaxAnnotation(); 37var lastTokenAnnotation = new SyntaxAnnotation();
IntroduceVariable\CSharpIntroduceVariableService.Rewriter.cs (1)
17private readonly SyntaxAnnotation _replacementAnnotation = new SyntaxAnnotation();
SplitStringLiteral\StringSplitter.cs (1)
20protected readonly SyntaxAnnotation RightNodeAnnotation = new();
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\AnalyzedPattern.cs (1)
29private static readonly SyntaxAnnotation s_annotation = new();
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (3)
42var annotation = new SyntaxAnnotation(); 65var annotation = new SyntaxAnnotation(); 244var annotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
362var annotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
102var openBraceTokenAnnotation = new SyntaxAnnotation(); 103var nullTokenAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (1)
54var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
58var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (1)
79var dummyObjectAnnotation = new SyntaxAnnotation();
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
57var dummyObjectAnnotation = new SyntaxAnnotation();
UsePatternMatching\CSharpIsAndCastCheckWithoutNameDiagnosticAnalyzer.cs (1)
38private static readonly SyntaxAnnotation s_referenceAnnotation = new();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
IncrementalParsing\IncrementalParsingTests.cs (1)
3056var oldRoot = tempRoot.ReplaceToken(tempToken, tempToken.WithAdditionalAnnotations(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)
514var myAnnotation = new SyntaxAnnotation();
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Rename\CSharpRenameRewriterLanguageService.cs (1)
289var annotation = new SyntaxAnnotation();
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
45var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (1)
192var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (1)
29private static readonly SyntaxAnnotation s_annotation = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsService.cs (1)
38private static readonly SyntaxAnnotation s_annotation = new();
Microsoft.CodeAnalysis.Features (30)
AddImport\References\Reference.cs (1)
91var annotation = new SyntaxAnnotation();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (1)
43var annotation = new SyntaxAnnotation();
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (1)
71protected static SyntaxAnnotation ContainerAnnotation { get; } = new SyntaxAnnotation();
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (2)
24private readonly SyntaxAnnotation _annotation = new(); 25private readonly SyntaxAnnotation _otherAnnotation = new();
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
177var declarationAnnotation = new SyntaxAnnotation(); 215new SyntaxAnnotation(),
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
42.ToDictionary(location => location, _ => new SyntaxAnnotation());
ExtractMethod\MethodExtractor.CodeGenerator.cs (3)
57MethodNameAnnotation = new SyntaxAnnotation(); 58CallSiteAnnotation = new SyntaxAnnotation(); 59MethodDefinitionAnnotation = new SyntaxAnnotation();
ExtractMethod\MethodExtractor.cs (2)
164var annotation = new SyntaxAnnotation(); 198var insertionPointAnnotation = new SyntaxAnnotation();
ExtractMethod\MethodExtractor.VariableSymbol.cs (1)
193private readonly SyntaxAnnotation _annotation = new();
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (1)
22private static readonly SyntaxAnnotation s_specializedFormattingAnnotation = new();
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (1)
31private static readonly SyntaxAnnotation s_annotation = new();
Shared\Utilities\AnnotatedSymbolMapping.cs (2)
58var typeNodeAnnotation = new SyntaxAnnotation(); 82var annotation = new SyntaxAnnotation();
Shared\Utilities\ExtractTypeHelpers.cs (2)
41var typeAnnotation = new SyntaxAnnotation(); 101var typeAnnotation = new SyntaxAnnotation();
Snippets\SnippetFunctionService.cs (1)
143var typeAnnotation = new SyntaxAnnotation();
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
30protected static readonly SyntaxAnnotation FindSnippetAnnotation = new();
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (1)
102var annotation = new SyntaxAnnotation();
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\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();
src\Analyzers\Core\CodeFixes\UseConditionalExpression\UseConditionalExpressionHelpers.cs (1)
13public static readonly SyntaxAnnotation SpecializedFormattingAnnotation = new();
UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (1)
36protected static SyntaxAnnotation SpecializedFormattingAnnotation = new();
Wrapping\AbstractCodeActionComputer.cs (1)
45private static readonly SyntaxAnnotation s_toFormatAnnotation = new();
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsRewriter.vb (1)
18Private ReadOnly _annotation As New SyntaxAnnotation()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
87Dim originalExprAnnotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
18Dim annotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (2)
NavigationBar\VisualBasicEditorNavigationBarItemService.vb (1)
22Private Shared ReadOnly GeneratedSymbolAnnotation As SyntaxAnnotation = New SyntaxAnnotation()
Utilities\CommandHandlers\AbstractImplementAbstractClassOrInterfaceCommandHandler.vb (1)
151Dim 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)
42Dim annotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.CallSiteContainerRewriter.vb (1)
20Private Shared ReadOnly s_removeAnnotation As SyntaxAnnotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicMethodExtractor.VisualBasicCodeGenerator.ExpressionCodeGenerator.vb (2)
116Dim sourceNodeAnnotation = New SyntaxAnnotation() 117Dim enclosingStatementAnnotation = New SyntaxAnnotation()
ExtractMethod\VisualBasicSelectionResult.vb (2)
32Dim firstAnnotation = New SyntaxAnnotation() 33Dim 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 (20)
IncrementalParser\IncrementalParser.vb (1)
1713Dim oldRoot2 = tempRoot2.ReplaceToken(tempToken2, tempToken2.WithAdditionalAnnotations(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)
Rename\VisualBasicRenameRewriterLanguageService.vb (2)
187Dim annotation = New SyntaxAnnotation() 210Dim annotationForSpeculativeNode = New SyntaxAnnotation()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Helpers\RemoveUnnecessaryImports\VisualBasicRemoveUnnecessaryImportsRewriter.vb (1)
18Private ReadOnly _annotation As New SyntaxAnnotation()
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\SpeculationAnalyzer.vb (1)
87Dim originalExprAnnotation = New SyntaxAnnotation()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ParameterSyntaxExtensions.vb (1)
18Dim annotation = New SyntaxAnnotation()
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Formatting\FormattingTests.vb (1)
3775Dim goo As New SyntaxAnnotation()
Microsoft.CodeAnalysis.Workspaces (13)
CaseCorrection\CaseCorrector.cs (1)
21public static readonly SyntaxAnnotation Annotation = new();
Formatting\Formatter.cs (1)
29public static SyntaxAnnotation Annotation { get; } = 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();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
211var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (1)
149var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (1)
47var annotation = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (3)
111var removeIfUnusedAnnotation = new SyntaxAnnotation(); 237var annotation = new SyntaxAnnotation(); 255var marker = new SyntaxAnnotation();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (2)
15public static readonly SyntaxAnnotation DoNotSimplifyAnnotation = new(); 16public static readonly SyntaxAnnotation SimplifyModuleNameAnnotation = new();
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
CodeCleanup\CodeCleanupTests.cs (2)
134var annotation = new SyntaxAnnotation(); 147var annotation = new SyntaxAnnotation();
SolutionTests\SolutionTests.cs (2)
3190var annotation = new SyntaxAnnotation(); 5437var newRoot = root.WithAdditionalAnnotations(new SyntaxAnnotation());
WorkspaceTests\AdhocWorkspaceTests.cs (1)
345var newRoot = root.WithAdditionalAnnotations(new SyntaxAnnotation());
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
203var annotation = new SyntaxAnnotation();