Skip to content

Commit

Permalink
Rename EnqueueToBuildBody to EnqueueUserMappings
Browse files Browse the repository at this point in the history
  • Loading branch information
trejjam committed Nov 19, 2023
1 parent 2a663e6 commit 25d2e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Riok.Mapperly/Descriptors/DescriptorBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ MapperConfiguration defaultMapperConfiguration
var userMappings = ExtractUserMappings().ToList();
// ExtractObjectFactories needs to be called after ExtractUserMappings due to configuring mapperDescriptor.Static
var objectFactories = ExtractObjectFactories();
EnqueueToBuildBody(userMappings, objectFactories);
EnqueueUserMappings(userMappings, objectFactories);
ExtractExternalMappings();
_mappingBodyBuilder.BuildMappingBodies(cancellationToken);
BuildMappingMethodNames();
Expand Down Expand Up @@ -149,13 +149,13 @@ private ObjectFactoryCollection ExtractObjectFactories()
return ObjectFactoryBuilder.ExtractObjectFactories(_builderContext, _mapperDescriptor.Symbol);
}

private void EnqueueToBuildBody(IReadOnlyCollection<IUserMapping> userMappings, ObjectFactoryCollection objectFactoryCollection)
private void EnqueueUserMappings(IReadOnlyCollection<IUserMapping> userMappings, ObjectFactoryCollection objectFactories)
{
foreach (var userMapping in userMappings)
{
var ctx = new MappingBuilderContext(
_builderContext,
objectFactoryCollection,
objectFactories,
userMapping.Method,
userMapping.SourceType,
userMapping.TargetType
Expand Down

0 comments on commit 25d2e30

Please sign in to comment.