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)
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(
612
?
SymbolUsageInfo
.Create(GetTypeOrNamespaceUsageInfo())
655
SymbolUsageInfo
GetSymbolUsageInfoCommon()
659
return
SymbolUsageInfo
.Create(ValueUsageInfo.WritableReference);
663
return
SymbolUsageInfo
.Create(ValueUsageInfo.ReadableWritableReference);
667
return
SymbolUsageInfo
.Create(ValueUsageInfo.ReadableReference);
671
return
SymbolUsageInfo
.Create(ValueUsageInfo.Write);
677
return
SymbolUsageInfo
.Create(TypeOrNamespaceUsageInfo.ObjectCreation);
684
return
SymbolUsageInfo
.Create(ValueUsageInfo.Name);
689
return
SymbolUsageInfo
.Create(ValueUsageInfo.Name);
705
return
SymbolUsageInfo
.Create(namespaceUsageInfo);
712
return
SymbolUsageInfo
.Create(typeUsageInfo);
724
return
SymbolUsageInfo
.Create(valueUsageInfo);
728
return
SymbolUsageInfo
.None;
FindSymbols\FindReferences\Finders\OrdinaryMethodReferenceFinder.cs (1)
169
var
symbolUsageInfo = GetSymbolUsageInfo(node, state, cancellationToken);
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)