private static void AddFix(CodeFix fix, SuggestedAction suggestedAction, IDictionary <CodeFixGroupKey, IList <SuggestedAction> > map, IList <CodeFixGroupKey> order) { var diag = fix.GetPrimaryDiagnosticData(); var groupKey = new CodeFixGroupKey(diag, fix.Action.Priority); if (!map.ContainsKey(groupKey)) { order.Add(groupKey); map[groupKey] = ImmutableArray.CreateBuilder <SuggestedAction>(); } map[groupKey].Add(suggestedAction); }
private static void AddFix( CodeFix fix, SuggestedAction suggestedAction, IDictionary<CodeFixGroupKey, IList<SuggestedAction>> map, ArrayBuilder<CodeFixGroupKey> order) { var diag = fix.GetPrimaryDiagnosticData(); var groupKey = new CodeFixGroupKey(diag, fix.Action.Priority); if (!map.ContainsKey(groupKey)) { order.Add(groupKey); map[groupKey] = ImmutableArray.CreateBuilder<SuggestedAction>(); } map[groupKey].Add(suggestedAction); }