Skip to content

Commit e15a5e8

Browse files
committed
Refactored.
1 parent 263898f commit e15a5e8

35 files changed

+663
-421
lines changed

HexaGen/BaseGenerator.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
namespace HexaGen
22
{
3-
using HexaGen.Core.Logging;
4-
using System;
5-
using System.Collections.Generic;
6-
73
public class BaseGenerator : LoggerBase
84
{
95
protected readonly CsCodeGeneratorConfig config;

HexaGen/CollectionHelper.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
namespace HexaGen
2+
{
3+
using System.Collections.Generic;
4+
5+
public static class CollectionHelper
6+
{
7+
public static void AddRange<T>(this HashSet<T> destination, IEnumerable<T> values)
8+
{
9+
foreach (var value in values)
10+
{
11+
destination.Add(value);
12+
}
13+
}
14+
15+
public static void AddRange<TKey, TValue>(this Dictionary<TKey, TValue> destination, Dictionary<TKey, TValue> values) where TKey : notnull
16+
{
17+
foreach (var pair in values)
18+
{
19+
destination[pair.Key] = pair.Value;
20+
}
21+
}
22+
}
23+
}

HexaGen/ConfigComposer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
namespace HexaGen
22
{
33
using System;
4-
using System.IO.IsolatedStorage;
54
using System.Text.Json;
65

76
public class BaseConfig

0 commit comments

Comments
 (0)