2 types derived from DependencyNode
NuGet.CommandLine.XPlat (2)
Commands\Why\DependencyNode.cs (2)
27
:
DependencyNode
(Id, Children)
54
:
DependencyNode
(Id, Children)
22 references to DependencyNode
NuGet.CommandLine.XPlat (22)
Commands\Why\DependencyGraphFinder.cs (7)
30
public static Dictionary<string, List<
DependencyNode
>?>? GetAllDependencyGraphsForTarget(
35
var result = new Dictionary<string, List<
DependencyNode
>?>(StringComparer.OrdinalIgnoreCase);
62
DependencyNode
? projectNode = CreateNode(target, targetPackage, projectAsLibrary, VersionRange.All);
145
public static
DependencyNode
? CreateNode(LockFileTarget target, string filterPackage, LockFileTargetLibrary library, VersionRange requestedVersion)
158
HashSet<
DependencyNode
>? children = null;
170
DependencyNode
? childNode = CreateNode(target, filterPackage, dependencyLibrary, dependency.VersionRange);
175
children = new HashSet<
DependencyNode
>();
Commands\Why\DependencyGraphPrinter.cs (8)
27
public static void PrintAllDependencyGraphs(Dictionary<string, List<
DependencyNode
>?> dependencyGraphPerFramework, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker)
52
private static void PrintDependencyGraphPerFramework(List<string> frameworks, List<
DependencyNode
>? topLevelNodes, string targetPackage, IAnsiConsole logger, IDotnetVersionChecker dotnetVersionChecker)
66
foreach (
var
node in topLevelNodes.OrderByDescending(c => c.Id, StringComparer.OrdinalIgnoreCase))
85
foreach (
var
child in current.Node.Children.OrderByDescending(c => c.Id, StringComparer.OrdinalIgnoreCase))
100
private static IRenderable GetNodeText(
DependencyNode
node, string targetPackage, IDotnetVersionChecker dotnetVersionChecker)
142
private static List<List<string>> GetDeduplicatedFrameworks(Dictionary<string, List<
DependencyNode
>?> dependencyGraphPerFramework)
181
private static int GetDependencyGraphHashCode(List<
DependencyNode
>? graph)
190
public required
DependencyNode
Node { get; init; }
Commands\Why\DependencyNode.cs (6)
16
internal abstract record DependencyNode(string Id, HashSet<
DependencyNode
> Children)
18
public abstract bool Equals(
DependencyNode
? other);
26
internal record ProjectNode(string Id, HashSet<
DependencyNode
> Children)
42
foreach (
var
child in Children.OrderBy(c => c.Id, StringComparer.OrdinalIgnoreCase))
53
internal record PackageNode(string Id, NuGetVersion ResolvedVersion, VersionRange RequestedVersion, HashSet<
DependencyNode
> Children)
73
foreach (
var
child in Children.OrderBy(c => c.Id, StringComparer.OrdinalIgnoreCase))
Commands\Why\WhyCommandRunner.cs (1)
67
Dictionary<string, List<
DependencyNode
>?>? dependencyGraphPerFramework = DependencyGraphFinder.GetAllDependencyGraphsForTarget(