-
-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable static user methods for instance mappers (#364)
- Loading branch information
1 parent
685d6ee
commit 7e1cb8f
Showing
9 changed files
with
29 additions
and
65 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
File renamed without changes.
16 changes: 0 additions & 16 deletions
16
..._snapshots/UserMethodTest.InstanceMapperShouldEmitDiagnosticForStaticMethods.verified.txt
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
...UserMethodTest.InstanceMapperShouldSupportUserDefinedStaticMethods#MyMapper.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,10 @@ | ||
//HintName: MyMapper.g.cs | ||
#nullable enable | ||
public partial class MyMapper | ||
{ | ||
public partial global::B Map(global::A s) | ||
{ | ||
var target = new global::B(StaticMapper(s.Value)); | ||
return target; | ||
} | ||
} |
9 changes: 0 additions & 9 deletions
9
...ethodTest.StaticMapperShouldEmitDiagnosticForInstanceMethods#MyStaticMapper.g.verified.cs
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
..._snapshots/UserMethodTest.StaticMapperShouldEmitDiagnosticForInstanceMethods.verified.txt
This file was deleted.
Oops, something went wrong.