12 instantiations of TerminalNodeStatus
Microsoft.Build (4)
Logging\TerminalLogger\TerminalLogger.cs (4)
668_nodes[nodeIndex] = new TerminalNodeStatus(e.ProjectFile!, targetFramework, runtimeIdentifier, "Restore", _projects[c].Stopwatch); 976TerminalNodeStatus nodeStatus = new(projectFile, project.TargetFramework, project.RuntimeIdentifier, targetName, project.Stopwatch); 1115var status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Green, indicator, displayName, project.Stopwatch); 1125var status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
Microsoft.Build.Engine.UnitTests (8)
NodeStatus_SizeChange_Tests.cs (1)
20private readonly TerminalNodeStatus _status = new("Namespace.Project", "TargetFramework", null, "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (7)
32Func<TerminalNodeStatus> newNodeStatus = () => new TerminalNodeStatus("project", "tfm", "rid", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch()); 42new("Namespace.Project", "TargetFramework", null, "Build", new MockStopwatch()) 45new("Namespace.Project", "TargetFramework", null, "Testing", new MockStopwatch()) 57TerminalNodeStatus node = new("Namespace.Project", "TargetFramework", null, "Build", new TickingStopwatch()); 74new("Namespace.Project", "TargetFramework", null, "Testing", new MockStopwatch()) 77new("Namespace.Project", "TargetFramework", null, TerminalColor.Red, "failed", "MyTestName1", new MockStopwatch()) 89TerminalNodeStatus node = new("Namespace.Project", "TargetFramework", null, TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch());
21 references to TerminalNodeStatus
Microsoft.Build (15)
Logging\TerminalLogger\TerminalLogger.cs (9)
115private TerminalNodeStatus?[] _nodes = Array.Empty<TerminalNodeStatus>(); 161private TerminalNodesFrame _currentFrame = new(Array.Empty<TerminalNodeStatus>(), 0, 0); 359_nodes = new TerminalNodeStatus[nodeCount + 1]; 976TerminalNodeStatus nodeStatus = new(projectFile, project.TargetFramework, project.RuntimeIdentifier, targetName, project.Stopwatch); 981private void UpdateNodeStatus(BuildEventContext buildEventContext, TerminalNodeStatus? nodeStatus) 1103var node = _nodes[NodeIndexForContext(buildEventContext)]; 1115var status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Green, indicator, displayName, project.Stopwatch); 1125var status = new TerminalNodeStatus(node.Project, node.TargetFramework, node.RuntimeIdentifier, TerminalColor.Yellow, indicator, displayName, project.Stopwatch);
Logging\TerminalLogger\TerminalNodesFrame.cs (5)
19private readonly (TerminalNodeStatus nodeStatus, int durationLength)[] _nodes; 27public TerminalNodesFrame(TerminalNodeStatus?[] nodes, int width, int height) 32_nodes = new (TerminalNodeStatus, int)[nodes.Length]; 34foreach (TerminalNodeStatus? status in nodes) 45TerminalNodeStatus status = _nodes[i].nodeStatus;
Logging\TerminalLogger\TerminalNodeStatus.cs (1)
67public virtual bool Equals(TerminalNodeStatus? other) =>
Microsoft.Build.Engine.UnitTests (6)
NodeStatus_SizeChange_Tests.cs (1)
20private readonly TerminalNodeStatus _status = new("Namespace.Project", "TargetFramework", null, "Target", new MockStopwatch());
NodeStatus_Transition_Tests.cs (5)
32Func<TerminalNodeStatus> newNodeStatus = () => new TerminalNodeStatus("project", "tfm", "rid", AnsiCodes.Colorize("colorized target", TerminalColor.Green), new MockStopwatch()); 57TerminalNodeStatus node = new("Namespace.Project", "TargetFramework", null, "Build", new TickingStopwatch()); 89TerminalNodeStatus node = new("Namespace.Project", "TargetFramework", null, TerminalColor.Green, "passed", "MyTestName1", new TickingStopwatch()); 106private string Animate(params TerminalNodeStatus[][] nodeStatusesUpdates) 111TerminalNodesFrame previousFrame = new(Array.Empty<TerminalNodeStatus>(), 0, 0);