-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: inline methods consisting of a single local variable declaration
- Loading branch information
Markus Hartmair
committed
Jul 28, 2024
1 parent
918a5d8
commit 5fb7526
Showing
3 changed files
with
58 additions
and
1 deletion.
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
17 changes: 17 additions & 0 deletions
17
...leProjectionUserImplementedTest.ClassToClassInlinedSingleDeclaration#Mapper.g.verified.cs
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 @@ | ||
//HintName: Mapper.g.cs | ||
// <auto-generated /> | ||
#nullable enable | ||
public partial class Mapper | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("Riok.Mapperly", "0.0.1.0")] | ||
private partial global::System.Linq.IQueryable<global::B> Map(global::System.Linq.IQueryable<global::A> source) | ||
{ | ||
#nullable disable | ||
return System.Linq.Queryable.Select(source, x => new global::B() | ||
{ | ||
StringValue = x.StringValue, | ||
NestedValue = new global::D { Value = x.NestedValue.Value + "-mapped" }, | ||
}); | ||
#nullable enable | ||
} | ||
} |