8 instantiations of NodeStatus
Microsoft.Build.CommandLine.UnitTests (4)
NodeStatus_SizeChange_Tests.cs (1)
25private readonly NodeStatus _status = new("Namespace.Project", "TargetFramework", "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (3)
36Func<NodeStatus> newNodeStatus = () => new NodeStatus("project", "tfm", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch()); 61NodeStatus node = new("Namespace.Project", "TargetFramework", "Build", new TickingStopwatch()); 93NodeStatus node = new("Namespace.Project", "TargetFramework", TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
MSBuild (4)
TerminalLogger\TerminalLogger.cs (4)
506_nodes[nodeIndex] = new NodeStatus(e.ProjectFile!, null, "Restore", _projects[c].Stopwatch); 733NodeStatus nodeStatus = new(projectFile, project.TargetFramework, targetName, project.Stopwatch); 852var status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Green, indicator, displayName, project.Stopwatch); 862var status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
21 references to NodeStatus
Microsoft.Build.CommandLine.UnitTests (6)
NodeStatus_SizeChange_Tests.cs (1)
25private readonly NodeStatus _status = new("Namespace.Project", "TargetFramework", "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (5)
36Func<NodeStatus> newNodeStatus = () => new NodeStatus("project", "tfm", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch()); 61NodeStatus node = new("Namespace.Project", "TargetFramework", "Build", new TickingStopwatch()); 93NodeStatus node = new("Namespace.Project", "TargetFramework", TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch()); 110private string Animate(params NodeStatus[][] nodeStatusesUpdates) 115NodesFrame previousFrame = new(Array.Empty<NodeStatus>(), 0, 0);
MSBuild (15)
TerminalLogger\NodesFrame.cs (5)
19private readonly (NodeStatus nodeStatus, int durationLength)[] _nodes; 27public NodesFrame(NodeStatus?[] nodes, int width, int height) 32_nodes = new (NodeStatus, int)[nodes.Length]; 34foreach (NodeStatus? status in nodes) 45NodeStatus status = _nodes[i].nodeStatus;
TerminalLogger\NodeStatus.cs (1)
63obj is NodeStatus status &&
TerminalLogger\TerminalLogger.cs (9)
103private NodeStatus?[] _nodes = Array.Empty<NodeStatus>(); 149private NodesFrame _currentFrame = new(Array.Empty<NodeStatus>(), 0, 0); 260_nodes = new NodeStatus[nodeCount + 1]; 733NodeStatus nodeStatus = new(projectFile, project.TargetFramework, targetName, project.Stopwatch); 738private void UpdateNodeStatus(BuildEventContext buildEventContext, NodeStatus? nodeStatus) 840var node = _nodes[NodeIndexForContext(buildEventContext)]; 852var status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Green, indicator, displayName, project.Stopwatch); 862var status = new NodeStatus(node.Project, node.TargetFramework, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);