@@ -22,18 +22,18 @@ private static IEnumerable<string> CreateImplementations(IEnumerable<DynamoDBMar
22
22
var argumentTypeName = argument . AnnotatedArgumentType ;
23
23
24
24
var constructor = $ "public { argument . ImplementationName } ({ MarshallerOptions . Name } { MarshallerOptions . ParamReference } )"
25
- . CreateBlock ( $ "{ MarshallerOptions . FieldReference } = { MarshallerOptions . ParamReference } ;", $ "{ KeyMarshaller . PrimaryKeyMarshallerReference } = { KeyMarshaller . AssignmentRoot ( argument . EntityTypeSymbol ) } ;") ;
25
+ . CreateScope ( $ "{ MarshallerOptions . FieldReference } = { MarshallerOptions . ParamReference } ;", $ "{ KeyMarshaller . PrimaryKeyMarshallerReference } = { KeyMarshaller . AssignmentRoot ( argument . EntityTypeSymbol ) } ;") ;
26
26
var interfaceImplementation = constructor
27
27
. Concat ( Marshaller . RootSignature ( argument . EntityTypeSymbol , entityTypeName ) )
28
- . Concat ( Unmarshaller . RootSignature ( argument . EntityTypeSymbol , entityTypeName ) )
28
+ . Concat ( UnMarshaller . RootSignature ( argument . EntityTypeSymbol , entityTypeName ) )
29
29
. Concat ( KeyMarshaller . IndexKeyMarshallerRootSignature ( argument . EntityTypeSymbol ) )
30
30
. Concat ( expressionValueMethod )
31
31
. Append ( expressionMethodName )
32
32
. Append ( KeyMarshaller . PrimaryKeyMarshallerDeclaration )
33
33
. Prepend ( MarshallerOptions . FieldDeclaration ) ;
34
34
35
35
var classImplementation = $ "private sealed class { argument . ImplementationName } : { Interface } <{ entityTypeName } , { argumentTypeName } , { nameTrackerTypeName } , { valueTrackerTypeName } >"
36
- . CreateBlock ( interfaceImplementation ) ;
36
+ . CreateScope ( interfaceImplementation ) ;
37
37
38
38
yield return options . TryInstantiate ( ) switch
39
39
{
@@ -54,7 +54,7 @@ public static IEnumerable<string> CreateRepository(IEnumerable<DynamoDBMarshalle
54
54
var getDynamoDbProperties = TypeExtensions . CacheFactory ( SymbolEqualityComparer . IncludeNullability , TypeExtensions . GetDynamoDbProperties ) ;
55
55
var code = CreateImplementations ( loadedArguments , options )
56
56
. Concat ( Marshaller . CreateClass ( loadedArguments , getDynamoDbProperties , options ) )
57
- . Concat ( Unmarshaller . CreateClass ( loadedArguments , getDynamoDbProperties , options ) )
57
+ . Concat ( UnMarshaller . CreateClass ( loadedArguments , getDynamoDbProperties , options ) )
58
58
. Concat ( AttributeExpressionName . CreateClasses ( loadedArguments , getDynamoDbProperties , options ) )
59
59
. Concat ( AttributeExpressionValue . CreateExpressionAttributeValue ( loadedArguments , getDynamoDbProperties , options ) )
60
60
. Concat ( KeyMarshaller . CreateKeys ( loadedArguments , getDynamoDbProperties , options ) ) ;
0 commit comments