2 instantiations of SymbolUsageInfo
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (2)
38=> new(valueUsageInfo, typeOrNamespaceUsageInfoOpt: null); 41=> new(valueUsageInfoOpt: null, typeOrNamespaceUsageInfo);
32 references to SymbolUsageInfo
Microsoft.CodeAnalysis.Workspaces (32)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (19)
413var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken); 455var symbolUsageInfo = GetSymbolUsageInfo(expression, state, cancellationToken); 499var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken); 530var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken); 565var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken); 597protected static SymbolUsageInfo GetSymbolUsageInfo( 612? SymbolUsageInfo.Create(GetTypeOrNamespaceUsageInfo()) 655SymbolUsageInfo GetSymbolUsageInfoCommon() 659return SymbolUsageInfo.Create(ValueUsageInfo.WritableReference); 663return SymbolUsageInfo.Create(ValueUsageInfo.ReadableWritableReference); 667return SymbolUsageInfo.Create(ValueUsageInfo.ReadableReference); 671return SymbolUsageInfo.Create(ValueUsageInfo.Write); 677return SymbolUsageInfo.Create(TypeOrNamespaceUsageInfo.ObjectCreation); 684return SymbolUsageInfo.Create(ValueUsageInfo.Name); 689return SymbolUsageInfo.Create(ValueUsageInfo.Name); 705return SymbolUsageInfo.Create(namespaceUsageInfo); 712return SymbolUsageInfo.Create(typeUsageInfo); 724return SymbolUsageInfo.Create(valueUsageInfo); 728return SymbolUsageInfo.None;
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
169var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
221var symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
FindSymbols\ReferenceLocation.cs (4)
50internal SymbolUsageInfo SymbolUsageInfo { get; } 71SymbolUsageInfo symbolUsageInfo, 89internal ReferenceLocation(Document document, IAliasSymbol? alias, Location location, bool isImplicit, SymbolUsageInfo symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties, CandidateReason candidateReason) 100SymbolUsageInfo.None, additionalProperties: [],
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (7)
18internal readonly struct SymbolUsageInfo : IEquatable<SymbolUsageInfo> 20public static readonly SymbolUsageInfo None = Create(ValueUsageInfo.None); 37public static SymbolUsageInfo Create(ValueUsageInfo valueUsageInfo) 40public static SymbolUsageInfo Create(TypeOrNamespaceUsageInfo typeOrNamespaceUsageInfo) 53=> obj is SymbolUsageInfo && Equals((SymbolUsageInfo)obj); 55public bool Equals(SymbolUsageInfo other)