-
-
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.
- Loading branch information
Showing
76 changed files
with
2,132 additions
and
851 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.401", | ||
"version": "9.0.100", | ||
"rollForward": "latestMinor" | ||
} | ||
} |
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
26 changes: 20 additions & 6 deletions
26
...perly.Tests/_snapshots/DerivedTypeTest.WithInterfaceSourceNullableShouldWork.verified.txt
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 |
---|---|---|
@@ -1,14 +1,28 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG090, | ||
Title: Mapping nullable source type to non-nullable target type, | ||
Location: /* | ||
{ | ||
[MapDerivedType<AImpl1, BImpl1>] | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
[MapDerivedType<AImpl2, BImpl2>] | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
public partial B Map(A? src); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(13,29), | ||
Message: Mapping the nullable source of type A? to target of type B which is not nullable, | ||
Severity: Info, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(13,29), | ||
MessageFormat: Mapping the nullable source of type {0} to target of type {1} which is not nullable, | ||
Message: Mapping the nullable source of type A? to target of type B which is not nullable, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG090, | ||
Title: Mapping nullable source type to non-nullable target type, | ||
MessageFormat: Mapping the nullable source of type {0} to target of type {1} which is not nullable, | ||
Category: Mapper, | ||
DefaultSeverity: Info, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
23 changes: 16 additions & 7 deletions
23
...ionaryCustomTest.DictionaryToCustomDictionaryWithPrivateCtorShouldDiagnostic.verified.txt
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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG013, | ||
Title: No accessible constructor with mappable arguments found, | ||
Severity: Error, | ||
WarningLevel: 0, | ||
Location: : (11,4)-(11,59), | ||
MessageFormat: {0} has no accessible constructor with mappable arguments, | ||
Location: /* | ||
{ | ||
private partial A Map(IDictionary<string, int> source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,59), | ||
Message: A has no accessible constructor with mappable arguments, | ||
Category: Mapper | ||
Severity: Error, | ||
Descriptor: { | ||
Id: RMG013, | ||
Title: No accessible constructor with mappable arguments found, | ||
MessageFormat: {0} has no accessible constructor with mappable arguments, | ||
Category: Mapper, | ||
DefaultSeverity: Error, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
22 changes: 16 additions & 6 deletions
22
...est.EnumToAnotherEnumByNameCaseInsensitive_testCase=SourceLowerMissingSource.verified.txt
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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
Location: /* | ||
{ | ||
private partial B Map(A source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,36), | ||
Message: Enum member Value3 (1) on D not found on source enum C, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Message: Enum member Value3 (1) on D not found on source enum C, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Category: Mapper, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
44 changes: 32 additions & 12 deletions
44
...ToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleSource.verified.txt
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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
Location: /* | ||
{ | ||
private partial B Map(A source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,36), | ||
Message: Enum member value5 (0) on D not found on source enum C, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Message: Enum member value5 (0) on D not found on source enum C, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Category: Mapper, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
}, | ||
{ | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
Location: /* | ||
{ | ||
private partial B Map(A source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,36), | ||
Message: Enum member value7 (2) on D not found on source enum C, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Message: Enum member value7 (2) on D not found on source enum C, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG037, | ||
Title: An enum member could not be found on the source enum, | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, | ||
Category: Mapper, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
44 changes: 32 additions & 12 deletions
44
...ToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleTarget.verified.txt
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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RMG038, | ||
Title: An enum member could not be found on the target enum, | ||
Location: /* | ||
{ | ||
private partial B Map(A source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,36), | ||
Message: Enum member Value5 (0) on C not found on target enum D, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, | ||
Message: Enum member Value5 (0) on C not found on target enum D, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG038, | ||
Title: An enum member could not be found on the target enum, | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, | ||
Category: Mapper, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
}, | ||
{ | ||
Id: RMG038, | ||
Title: An enum member could not be found on the target enum, | ||
Location: /* | ||
{ | ||
private partial B Map(A source); | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (11,4)-(11,36), | ||
Message: Enum member Value7 (2) on C not found on target enum D, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (11,4)-(11,36), | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, | ||
Message: Enum member Value7 (2) on C not found on target enum D, | ||
Category: Mapper | ||
Descriptor: { | ||
Id: RMG038, | ||
Title: An enum member could not be found on the target enum, | ||
MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, | ||
Category: Mapper, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.