20 references to SymbolAnnotation
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
ITypeSymbolExtensions.ExpressionSyntaxGeneratorVisitor.cs (1)
33syntax = syntax.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol));
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
42syntax = syntax.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol));
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.cs (1)
52? c.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol), Simplifier.Annotation)
Microsoft.CodeAnalysis.Features (5)
AbstractForEachCastCodeFixProvider.cs (1)
80Simplifier.Annotation, Simplifier.AddImportsAnnotation, SymbolAnnotation.Create(enumerableType));
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (3)
292.WithAdditionalAnnotations(Simplifier.Annotation, Simplifier.AddImportsAnnotation, SymbolAnnotation.Create(newType))); 319.WithAdditionalAnnotations(Simplifier.Annotation, Simplifier.AddImportsAnnotation, SymbolAnnotation.Create(newType))); 331.WithAdditionalAnnotations(Simplifier.AddImportsAnnotation, SymbolAnnotation.Create(newType)),
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
111var reformatSnippetNode = snippetExpressionNode.WithAdditionalAnnotations(findSnippetAnnotation, cursorAnnotation, Simplifier.Annotation, SymbolAnnotation.Create(consoleSymbol!), Formatter.Annotation);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
ExpressionSyntaxGeneratorVisitor.vb (1)
28expression = expression.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol))
TypeSyntaxGeneratorVisitor.vb (1)
33type = type.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol))
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.vb (1)
56Return c.WithAdditionalAnnotations(SymbolAnnotation.Create(symbol), Simplifier.Annotation)
Microsoft.CodeAnalysis.Workspaces (5)
Editing\ImportAdderService.cs (3)
181var annotatedNodes = syntaxNodes.Where(x => x.HasAnnotations(SymbolAnnotation.Kind)); 190var annotations = annotatedNode.GetAnnotations(SymbolAnnotation.Kind); 195foreach (var namedType in SymbolAnnotation.GetSymbols(annotation, model.Compilation).OfType<INamedTypeSymbol>())
SimplificationHelpers.cs (2)
67var annotation1 = expression.GetAnnotations(SymbolAnnotation.Kind).FirstOrDefault(); 70var typeSymbol = SymbolAnnotation.GetSymbol(annotation1, semanticModel.Compilation);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SerializationTests.cs (4)
72var annotation = SymbolAnnotation.Create(symbol); 85var dannotation = droot.GetAnnotations(SymbolAnnotation.Kind).SingleOrDefault(); 89var id = SymbolAnnotation.GetSymbol(annotation, model.Compilation); 90var did = SymbolAnnotation.GetSymbol(dannotation, model.Compilation);