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);
30 references to SymbolUsageInfo
Microsoft.CodeAnalysis.Workspaces (30)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (18)
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( 613? SymbolUsageInfo.Create(GetTypeOrNamespaceUsageInfo()) 656SymbolUsageInfo GetSymbolUsageInfoCommon() 660return SymbolUsageInfo.Create(ValueUsageInfo.WritableReference); 664return SymbolUsageInfo.Create(ValueUsageInfo.ReadableWritableReference); 668return SymbolUsageInfo.Create(ValueUsageInfo.ReadableReference); 672return SymbolUsageInfo.Create(ValueUsageInfo.Write); 682return SymbolUsageInfo.Create(ValueUsageInfo.Name); 687return SymbolUsageInfo.Create(ValueUsageInfo.Name); 703return SymbolUsageInfo.Create(namespaceUsageInfo); 710return SymbolUsageInfo.Create(typeUsageInfo); 722return SymbolUsageInfo.Create(valueUsageInfo); 726return SymbolUsageInfo.None;
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)