1 type derived from DefinitionItem
Microsoft.CodeAnalysis.Features (1)
ExternalAccess\VSTypeScript\Api\VSTypeScriptDefinitionItemBase.cs (1)
12internal abstract class VSTypeScriptDefinitionItemBase : DefinitionItem
80 references to DefinitionItem
Microsoft.CodeAnalysis.Features (80)
ExternalAccess\UnitTesting\API\UnitTestingDefinitionItemWrapper.cs (2)
7internal readonly struct UnitTestingDefinitionItemWrapper(FindUsages.DefinitionItem definition) 9internal FindUsages.DefinitionItem UnderlyingObject { get; } = definition;
FindUsages\AbstractFindUsagesService.DefinitionTrackingContext.cs (4)
18/// while also keeping track of the <see cref="DefinitionItem"/> definitions reported. 28private readonly List<DefinitionItem> _definitions = []; 45public ValueTask OnDefinitionFoundAsync(DefinitionItem definition, CancellationToken cancellationToken) 55public ImmutableArray<DefinitionItem> GetDefinitions()
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (4)
28IFindUsagesContext context, OptionsProvider<ClassificationOptions> classificationOptions, DefinitionItem definition) : IStreamingFindLiteralReferencesProgress 31private readonly DefinitionItem _definition = definition; 70private readonly Dictionary<SymbolGroup, DefinitionItem> _definitionToItem = []; 86private async ValueTask<DefinitionItem> GetDefinitionItemAsync(SymbolGroup group, CancellationToken cancellationToken)
FindUsages\AbstractFindUsagesService_FindReferences.cs (7)
65private static async Task<ImmutableArray<DefinitionItem>> GetThirdPartyDefinitionsAsync( 67ImmutableArray<DefinitionItem> definitions, 70using var _ = ArrayBuilder<DefinitionItem>.GetInstance(out var result); 74foreach (var definition in definitions) 76var thirdParty = await provider.GetThirdPartyDefinitionItemAsync(solution, definition, cancellationToken).ConfigureAwait(false); 226var definition = DefinitionItem.CreateNonNavigableItem(
FindUsages\DefaultExternalDefinitionItemProvider.cs (3)
23public Task<DefinitionItem?> GetThirdPartyDefinitionItemAsync(Solution solution, DefinitionItem definitionItem, CancellationToken cancellationToken) 24=> SpecializedTasks.Null<DefinitionItem>();
FindUsages\DefinitionItem.cs (8)
20/// Standard implementations can be obtained through the various <see cref="DefinitionItem"/>.Create overloads. 162public static DefinitionItem Create( 177public static DefinitionItem Create( 194public static DefinitionItem Create( 208public static DefinitionItem Create( 222public static DefinitionItem Create( 243public static DefinitionItem CreateNonNavigableItem( 254public static DefinitionItem CreateNonNavigableItem(
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
19/// Implementation of a <see cref="DefinitionItem"/> that sits on top of a
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (1)
14using static Microsoft.CodeAnalysis.FindUsages.DefinitionItem;
FindUsages\DefinitionItemFactory.cs (15)
28public static DefinitionItem ToNonClassifiedDefinitionItem( 34public static DefinitionItem ToNonClassifiedDefinitionItem( 41private static DefinitionItem ToNonClassifiedDefinitionItem( 60public static async ValueTask<DefinitionItem> ToClassifiedDefinitionItemAsync( 74public static async ValueTask<DefinitionItem> ToClassifiedDefinitionItemAsync( 92private static DefinitionItem ToDefinitionItem( 133return DefinitionItem.CreateNonNavigableItem( 142return DefinitionItem.Create( 149.Add(DefinitionItem.MetadataSymbolKey, SymbolKey.CreateString(symbol)) 150.Add(DefinitionItem.MetadataSymbolOriginatingProjectIdGuid, originatingProjectId.Id.ToString()) 151.Add(DefinitionItem.MetadataSymbolOriginatingProjectIdDebugName, originatingProjectId.DebugName ?? ""); 260properties = properties.Add(DefinitionItem.Primary, ""); 266properties = properties.Add(DefinitionItem.RQNameKey1, rqName); 276properties = properties.Add(DefinitionItem.RQNameKey2, rqName); 286DefinitionItem definitionItem,
FindUsages\DefinitionsAndReferences.cs (3)
14/// A collection of <see cref="DefinitionItem"/>s and <see cref="SourceReferenceItem"/>s 26public ImmutableArray<DefinitionItem> Definitions { get; } 35ImmutableArray<DefinitionItem> definitions,
FindUsages\FindUsagesContext.cs (1)
30public virtual ValueTask OnDefinitionFoundAsync(DefinitionItem definition, CancellationToken cancellationToken) => default;
FindUsages\IExternalDefinitionItemProvider.cs (2)
13Task<DefinitionItem?> GetThirdPartyDefinitionItemAsync( 14Solution solution, DefinitionItem definitionItem, CancellationToken cancellationToken);
FindUsages\IFindUsagesContext.cs (1)
37ValueTask OnDefinitionFoundAsync(DefinitionItem definition, CancellationToken cancellationToken);
FindUsages\IRemoteFindUsagesService.cs (2)
92private readonly Dictionary<int, DefinitionItem> _idToDefinition = []; 152private DefinitionItem GetDefinition(int definitionId)
FindUsages\SourceReferenceItem.cs (5)
21public DefinitionItem Definition { get; } 52DefinitionItem definition, 68internal SourceReferenceItem(DefinitionItem definition, DocumentSpan sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans) 74internal SourceReferenceItem(DefinitionItem definition, DocumentSpan sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo) 79internal SourceReferenceItem(DefinitionItem definition, DocumentSpan sourceSpan, ClassifiedSpansAndHighlightSpan? classifiedSpans, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties)
GoToBase\AbstractGoToBaseService.cs (1)
76var definitionItem = baseSymbol.ToNonClassifiedDefinitionItem(
GoToDefinition\GoToDefinitionFeatureHelpers.cs (4)
55public static async Task<ImmutableArray<DefinitionItem>> GetDefinitionsAsync( 65using var _ = ArrayBuilder<DefinitionItem>.GetInstance(out var definitions); 86var definitionItem = symbol.ToNonClassifiedDefinitionItem(solution, includeHiddenLocations: true); 93var thirdPartyItem = await provider.GetThirdPartyDefinitionItemAsync(solution, definitionItem, cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (8)
235var item = DefinitionItem.CreateNonNavigableItem(tags: [], displayParts: []); 255var item = DefinitionItem.Create( 558var definition = ToSlimDefinitionItem(targetSymbol, solution); 706private static DefinitionItem? ToSlimDefinitionItem(ISymbol symbol, Solution solution) 725return DefinitionItem.Create( 736return DefinitionItem.Create(
Navigation\DefaultSymbolNavigationService.cs (1)
21public Task<(string filePath, LinePosition linePosition)?> GetExternalNavigationSymbolLocationAsync(DefinitionItem definitionItem, CancellationToken cancellationToken)
Navigation\ISymbolNavigationService.cs (2)
28/// <summary>Returns the location file and position we would navigate to for the given <see cref="DefinitionItem"/>.</summary> 31DefinitionItem definitionItem, CancellationToken cancellationToken);
SemanticSearch\ISemanticSearchResultsObserver.cs (1)
18ValueTask OnDefinitionFoundAsync(DefinitionItem definition, CancellationToken cancellationToken);
StackTraceExplorer\IStackTraceExplorerService.cs (1)
20Task<DefinitionItem?> TryFindDefinitionAsync(Solution solution, ParsedFrame frame, StackFrameSymbolPart symbolPart, CancellationToken cancellationToken);
StackTraceExplorer\StackTraceExplorerService.cs (1)
44public async Task<DefinitionItem?> TryFindDefinitionAsync(Solution solution, ParsedFrame frame, StackFrameSymbolPart symbolPart, CancellationToken cancellationToken)
StackTraceExplorer\StackTraceExplorerUtilities.cs (2)
24public static async Task<DefinitionItem?> GetDefinitionAsync(Solution solution, StackFrameCompilationUnit compilationUnit, StackFrameSymbolPart symbolPart, CancellationToken cancellationToken) 93DefinitionItem GetDefinition(IMethodSymbol method)