Skip to content

Commit b97c0b2

Browse files
committed
Remove redundant method
1 parent 3e9a2eb commit b97c0b2

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/DynamoDBGenerator.SourceGenerator/DynamoDBDMarshaller.cs

+2-9
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,14 @@ private static void Execute(SourceProductionContext context,
3636

3737
foreach (var typeSymbol in compilation.GetTypeSymbols(classDeclarationSyntax))
3838
{
39+
var (options, args) = CreateArguments(typeSymbol, compilation);
3940
context.AddSource(
4041
$"{typeSymbol.ToDisplayString()}.g",
41-
string.Join(Constants.NewLine, CreateFileContent(typeSymbol, compilation))
42+
string.Join(Constants.NewLine, MarshallerFactory.Create(typeSymbol, args.ToArray(), options))
4243
);
4344
}
4445
}
4546

46-
private static IEnumerable<string> CreateFileContent(INamedTypeSymbol type, Compilation compilation)
47-
{
48-
var (options, args) = CreateArguments(type, compilation);
49-
foreach (var s in MarshallerFactory.Create(type, args.ToArray(), options))
50-
yield return s;
51-
}
52-
53-
5447
private static (MarshallerOptions, IEnumerable<DynamoDBMarshallerArguments>) CreateArguments(INamedTypeSymbol type,
5548
Compilation compilation)
5649
{

0 commit comments

Comments
 (0)