Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ internal static DiagnosticDescriptor GetDefaultMarshalModeDiagnostic(DiagnosticD
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics =>
ImmutableArray.Create(
MarshallerTypeMustSpecifyManagedTypeRule,
MarshallerTypeMustBeStaticClassOrStructRule,
UnmanagedTypeMustBeUnmanagedRule,
GetPinnableReferenceReturnTypeBlittableRule,
TypeMustHaveExplicitCastFromVoidPointerRule,
Expand Down Expand Up @@ -653,7 +654,7 @@ void ReportDiagnosticsForMissingMembers(DiagnosticReporter diagnosticReporter)
if (isLinearCollectionMarshaller)
{
// Verify that all of the following methods are present with valid shapes:
// - AllocateContainerForUnmanagedElements
// - AllocateContainerForManagedElements
// - GetUnmanagedValuesSource
// - GetManagedValuesDestination
if (methods.ToManaged is null && methods.ToManagedFinally is null)
Expand All @@ -662,7 +663,7 @@ void ReportDiagnosticsForMissingMembers(DiagnosticReporter diagnosticReporter)
StatelessLinearCollectionRequiresTwoParameterAllocateContainerForManagedElementsRule,
MissingMemberNames.CreateDiagnosticPropertiesForMissingMembersDiagnostic(
mode,
ShapeMemberNames.LinearCollection.Stateless.AllocateContainerForUnmanagedElements),
ShapeMemberNames.LinearCollection.Stateless.AllocateContainerForManagedElements),
marshallerType.ToDisplayString(),
mode,
managedType.ToDisplayString());
Expand Down
Loading