Bari.Plugins.VsCore.Build.OptimizingBuildContextFactory.FollowMergingSources C# (CSharp) Method

FollowMergingSources() private static method

private static FollowMergingSources ( ISet graph, IBuilder target ) : IBuilder
graph ISet
target IBuilder
return IBuilder
        private static IBuilder FollowMergingSources(ISet<EquatableEdge<IBuilder>> graph, IBuilder target)
        {
            var mergeParentEdge = graph.FirstOrDefault(e => e.Target != e.Source && e.Target == target && e.Source is MergingBuilder && !HasDifferentMergingTag(e.Source, e.Target));
            return mergeParentEdge != null ? FollowMergingSources(graph, mergeParentEdge.Source) : target;
        }