-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve user mappings correctly when reference handling is enabl…
…ed (#1162) * Removes the BuildPriority of a Mapping, all mappings are built with the same priority. This is not needed anymore as user defined mappings with reference handling enabled but no reference handler parameter just delegate to the a generated version of the mapping with a reference handler parameter. * Removes CallableByOthers of a Mapping, all mappings are now considered callable by others For runtime target type mappings there is no type match anyway. And user defined mappings with reference handling enabled but no reference handler parameter just delegate to the version with a reference handler parameter now.
- Loading branch information
Showing
21 changed files
with
178 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
src/Riok.Mapperly/Descriptors/Mappings/MappingBodyBuildingPriority.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/Riok.Mapperly/Descriptors/Mappings/UserMappings/IDelegateUserMapping.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace Riok.Mapperly.Helpers; | ||
|
||
internal static class QueueExtensions | ||
{ | ||
/// <summary> | ||
/// Dequeues all nodes. | ||
/// Items added while this operation is in progress are also considered. | ||
/// </summary> | ||
/// <returns>An enumerable with all items.</returns> | ||
public static IEnumerable<TElement> DequeueAll<TElement>(this Queue<TElement> queue) | ||
{ | ||
while (queue.TryDequeue(out var element)) | ||
{ | ||
yield return element; | ||
} | ||
} | ||
} |
Oops, something went wrong.