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