18 references to ReferenceType
Microsoft.CodeAnalysis.Features (18)
UnusedReferences\ProjectAssets\ProjectAssetsReader.cs (9)
76
var referenceName = referenceInfo.ReferenceType ==
ReferenceType
.Project
103
var
referenceType =
ReferenceType
.Unknown;
124
"package" =>
ReferenceType
.Package,
125
"project" =>
ReferenceType
.Project,
126
_ =>
ReferenceType
.Assembly
129
if (referenceType ==
ReferenceType
.Project &&
155
if (referenceType ==
ReferenceType
.Unknown)
160
if (referenceType ==
ReferenceType
.Package && itemSpecification == ".NETStandard.Library")
UnusedReferences\ReferenceInfo.cs (2)
12
internal sealed class ReferenceInfo(
ReferenceType
referenceType, string itemSpecification, bool treatAsUsed, ImmutableArray<string> compilationAssemblies, ImmutableArray<ReferenceInfo> dependencies)
18
public
ReferenceType
ReferenceType { get; } = referenceType;
UnusedReferences\UnusedReferencesRemover.cs (7)
22
private static readonly ImmutableArray<
ReferenceType
> s_processingOrder = [
ReferenceType
.Project,
ReferenceType
.Package,
ReferenceType
.Assembly];
85
foreach (
var
referenceType in s_processingOrder)
109
foreach (
var
referenceType in s_processingOrder)
142
if (reference.ReferenceType ==
ReferenceType
.Project)