47 references to ByValueMarshalKindSupport
Microsoft.Interop.ComInterfaceGenerator (6)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
67public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\KeepAliveThisMarshaller.cs (1)
35public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (2)
65public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic) 102public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\ObjectUnwrapperResolver.cs (1)
62public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\StructAsHResultMarshallerFactory.cs (1)
94public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Marshaling\BaseJSGenerator.cs (2)
31public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic) 34return ByValueMarshalKindSupport.NotSupported;
Microsoft.Interop.SourceGeneration (39)
Marshalling\BlittableMarshaller.cs (1)
102public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\BoolMarshaller.cs (1)
100public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\ByValueContentsMarshalKindValidator.cs (5)
37var support = generator.Generator.SupportsByValueMarshalKind(generator.Generator.TypeInfo.ByValueContentsMarshalKind, out GeneratorDiagnostic? diagnostic); 38Debug.Assert(support == ByValueMarshalKindSupport.Supported || diagnostic is not null); 41ByValueMarshalKindSupport.Supported => generator, 42ByValueMarshalKindSupport.NotSupported => ResolvedGenerator.ResolvedWithDiagnostics(s_forwarder.Bind(generator.Generator.TypeInfo, context), generator.Diagnostics.Add(diagnostic!)), 43ByValueMarshalKindSupport.NotRecommended => generator with { Diagnostics = generator.Diagnostics.Add(diagnostic!) },
Marshalling\ByValueMarshalKindSupportDescriptor.cs (18)
9public record struct ByValueMarshalKindSupportInfo(ByValueMarshalKindSupport Support, string? details) 11public ByValueMarshalKindSupport GetSupport(TypePositionInfo info, out GeneratorDiagnostic? diagnostic) 15ByValueMarshalKindSupport.Supported => null, 16ByValueMarshalKindSupport.NotRecommended => 21ByValueMarshalKindSupport.NotSupported => 45DefaultSupport: new(ByValueMarshalKindSupport.Supported, null), 46InSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InAttributeNotSupportedOnByValueParameters), 47OutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.OutAttributeNotSupportedOnByValueParameters), 48InOutSupport: new(ByValueMarshalKindSupport.NotSupported, SR.InOutAttributeNotSupportedOnByValueParameters)); 54DefaultSupport: new(ByValueMarshalKindSupport.NotRecommended, SR.PreferExplicitInOutAttributesOnArrays), 55InSupport: new(ByValueMarshalKindSupport.Supported, null), 56OutSupport: new(ByValueMarshalKindSupport.Supported, null), 57InOutSupport: new(ByValueMarshalKindSupport.Supported, null)); 60/// Returns the support for the ByValueContentsMarshalKind, and if it is not <see cref="ByValueMarshalKindSupport.Supported"/>, diagnostic is not null 62public ByValueMarshalKindSupport GetSupport(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic) 73return ByValueMarshalKindSupport.NotSupported; 77return ByValueMarshalKindSupport.Supported; 84return ByValueMarshalKindSupport.Supported;
Marshalling\CharMarshaller.cs (1)
137public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\CustomTypeMarshallingGenerator.cs (2)
93&& byValueContentsMarshallingSupport.GetSupport(TypeInfo.ByValueContentsMarshalKind, TypeInfo, out _) != ByValueMarshalKindSupport.NotSupported 99public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)
Marshalling\DelegateMarshaller.cs (1)
95public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\Forwarder.cs (1)
34public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\MarshallingGenerator.cs (7)
140/// The diagnostic to report if the return value is not <see cref="ByValueMarshalKindSupport.Supported"/>. 141/// It should be non-null if the value is not <see cref="ByValueMarshalKindSupport.Supported"/> 144ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic); 170public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic) 246/// The diagnostic to report if the return value is not <see cref="ByValueMarshalKindSupport.Supported"/>. 247/// It should be non-null if the value is not <see cref="ByValueMarshalKindSupport.Supported"/> 250ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic);
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
99public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)
Marshalling\UnmanagedToManagedOwnershipTrackingStrategy.cs (1)
177public ByValueMarshalKindSupport SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)