45 references to DocumentationCommentId
Microsoft.AspNetCore.App.CodeFixes (1)
Http\HeaderDictionaryAddFixer.cs (1)
72var annotation = new SyntaxAnnotation("SymbolId", DocumentationCommentId.CreateReferenceId(wellKnownTypes.Get(WellKnownType.Microsoft_AspNetCore_Http_HeaderDictionaryExtensions)));
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
63/// <param name="resolvedWithDocCommentIdFormat">Indicates if resolved "Target" argument is in Roslyn's <see cref="DocumentationCommentId"/> format.</param> 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation);
Microsoft.CodeAnalysis.CodeStyle (5)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
104var docCommentId = DocumentationCommentId.CreateDeclarationId(resolvedSymbol);
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
63/// <param name="resolvedWithDocCommentIdFormat">Indicates if resolved "Target" argument is in Roslyn's <see cref="DocumentationCommentId"/> format.</param> 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (2)
18=> new(Kind, DocumentationCommentId.CreateReferenceId(symbol)); 26: DocumentationCommentId.GetSymbolsForReferenceId(annotation.Data, compilation);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
337? DocumentationCommentId.GetSymbolsForDeclarationId(documentation.CompletionListCref, compilation).OfType<INamedTypeSymbol>().FirstOrDefault()
Microsoft.CodeAnalysis.Features (6)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (1)
378=> "~" + DocumentationCommentId.CreateDeclarationId(targetSymbol);
DocumentationComments\AbstractDocumentationCommentFormattingService.cs (2)
453var symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(crefAttribute.Value, semanticModel.Compilation); 502var symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(crefValue, semanticModel.Compilation);
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryAttributeSuppressionsDiagnosticAnalyzer.cs (1)
104var docCommentId = DocumentationCommentId.CreateDeclarationId(resolvedSymbol);
src\Compilers\Core\Portable\DiagnosticAnalyzer\SuppressMessageAttributeState.TargetSymbolResolver.cs (2)
63/// <param name="resolvedWithDocCommentIdFormat">Indicates if resolved "Target" argument is in Roslyn's <see cref="DocumentationCommentId"/> format.</param> 75var docIdResults = DocumentationCommentId.GetSymbolsForDeclarationId(nameWithoutPrefix, _compilation);
Microsoft.CodeAnalysis.UnitTests (15)
Symbols\DocumentationCommentIdTests.cs (15)
39var actualDocId = DocumentationCommentId.CreateDeclarationId(symbol); 45var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 69var actualDocId = DocumentationCommentId.CreateDeclarationId(symbol); 71var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 89var actualDocId = DocumentationCommentId.CreateDeclarationId(symbol); 95var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 113var actualDocId = DocumentationCommentId.CreateDeclarationId(symbol); 119var foundSymbols = DocumentationCommentId.GetSymbolsForDeclarationId(expectedDocId, comp); 135Assert.NotNull(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(``0[])", comp)); 136Assert.Null(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(`0[])", comp)); 137Assert.Null(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(``1[])", comp)); 154Assert.NotNull(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(``0[])", comp)); 155Assert.Null(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(`0[])", comp)); 156Assert.Null(DocumentationCommentId.GetFirstSymbolForDeclarationId("M:N.C.M``1(``1[])", comp)); 184var id = DocumentationCommentId.CreateDeclarationId(symbol!);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (1)
74Dim crefType = DocumentationCommentId.GetSymbolsForDeclarationId(documentation.CompletionListCref, compilation) _
Microsoft.CodeAnalysis.Workspaces (7)
Editing\SymbolEditor.cs (2)
98var symbolId = DocumentationCommentId.CreateDeclarationId(symbol); 154var symbols = DocumentationCommentId.GetSymbolsForDeclarationId(symbolId, comp).ToList();
FindSymbols\FindReferences\Finders\AbstractReferenceFinder_GlobalSuppressions.cs (1)
26documentationCommentId = DocumentationCommentId.CreateDeclarationId(symbol);
Shared\Extensions\ISymbolExtensions.cs (1)
370symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(crefValue, compilation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SymbolAnnotation.cs (2)
18=> new(Kind, DocumentationCommentId.CreateReferenceId(symbol)); 26: DocumentationCommentId.GetSymbolsForReferenceId(annotation.Data, compilation);
Utilities\Documentation\DeferredDocumentationProvider.cs (1)
33var symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(documentationMemberID, _compilation);
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
UtilityTest\DocumentationCommentIdTests.cs (6)
25var id = DocumentationCommentId.CreateDeclarationId(symbol); 28var sym = DocumentationCommentId.GetFirstSymbolForDeclarationId(id, compilation); 35var symbol = DocumentationCommentId.GetFirstSymbolForDeclarationId(expectedId, compilation); 47var id = DocumentationCommentId.CreateDeclarationId(symbol); 53var id = DocumentationCommentId.CreateReferenceId(symbol); 56var sym = DocumentationCommentId.GetSymbolsForReferenceId(id, compilation).FirstOrDefault();
Microsoft.VisualStudio.LanguageServices (1)
Library\ObjectBrowser\AbstractDescriptionBuilder.cs (1)
421if (DocumentationCommentId.GetFirstSymbolForDeclarationId(exceptionType, compilation) is INamedTypeSymbol exceptionTypeSymbol)