private void ProcessProjectEndEvent(ProjectFinishedEvent e, TimelineBuilderContext context) { Debug.Assert(context.HasOpenBuilds); BuildEntry projectEntry = context.OpenProjectEntries.Find(_ => _.Context.Equals(e.Context)); Debug.Assert(projectEntry != null); projectEntry.Parent.AddChild(e); projectEntry.CloseWith(e); context.OpenProjectEntries.Remove(projectEntry); }
private void ProcessBuildEndEvent(BuildFinishedEvent e, TimelineBuilderContext context) { Debug.Assert(context.OpenBuildEntries.Count == 1); Debug.Assert(!context.HasOpenProjects); Debug.Assert(!context.HasOpenTargets); Debug.Assert(!context.HasOpenTasks); BuildEntry buildEntry = context.OpenBuildEntries[0]; Debug.Assert(buildEntry != null); buildEntry.CloseWith(e); context.OpenBuildEntries.Remove(buildEntry); }