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)
413
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
455
var
symbolUsageInfo = GetSymbolUsageInfo(expression, state, cancellationToken);
499
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
530
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
565
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
597
protected static
SymbolUsageInfo
GetSymbolUsageInfo(
613
?
SymbolUsageInfo
.Create(GetTypeOrNamespaceUsageInfo())
656
SymbolUsageInfo
GetSymbolUsageInfoCommon()
660
return
SymbolUsageInfo
.Create(ValueUsageInfo.WritableReference);
664
return
SymbolUsageInfo
.Create(ValueUsageInfo.ReadableWritableReference);
668
return
SymbolUsageInfo
.Create(ValueUsageInfo.ReadableReference);
672
return
SymbolUsageInfo
.Create(ValueUsageInfo.Write);
682
return
SymbolUsageInfo
.Create(ValueUsageInfo.Name);
687
return
SymbolUsageInfo
.Create(ValueUsageInfo.Name);
703
return
SymbolUsageInfo
.Create(namespaceUsageInfo);
710
return
SymbolUsageInfo
.Create(typeUsageInfo);
722
return
SymbolUsageInfo
.Create(valueUsageInfo);
726
return
SymbolUsageInfo
.None;
FindSymbols\FindReferences\Finders\PropertySymbolReferenceFinder.cs (1)
221
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
FindSymbols\ReferenceLocation.cs (4)
50
internal
SymbolUsageInfo
SymbolUsageInfo { get; }
71
SymbolUsageInfo
symbolUsageInfo,
89
internal ReferenceLocation(Document document, IAliasSymbol? alias, Location location, bool isImplicit,
SymbolUsageInfo
symbolUsageInfo, ImmutableArray<(string key, string value)> additionalProperties, CandidateReason candidateReason)
100
SymbolUsageInfo
.None, additionalProperties: [],
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolUsageInfo.cs (7)
18
internal readonly struct SymbolUsageInfo : IEquatable<
SymbolUsageInfo
>
20
public static readonly
SymbolUsageInfo
None = Create(ValueUsageInfo.None);
37
public static
SymbolUsageInfo
Create(ValueUsageInfo valueUsageInfo)
40
public static
SymbolUsageInfo
Create(TypeOrNamespaceUsageInfo typeOrNamespaceUsageInfo)
53
=> obj is
SymbolUsageInfo
&& Equals((
SymbolUsageInfo
)obj);
55
public bool Equals(
SymbolUsageInfo
other)