45 references to ByValueMarshalKindSupport
Microsoft.Interop.ComInterfaceGenerator (6)
Marshallers\ComInterfaceDispatchMarshallingResolver.cs (1)
67
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\KeepAliveThisMarshaller.cs (1)
35
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\ManagedHResultExceptionGeneratorResolver.cs (2)
58
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
95
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\ObjectUnwrapperResolver.cs (1)
62
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshallers\StructAsHResultMarshallerFactory.cs (1)
94
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
Marshaling\BaseJSGenerator.cs (1)
36
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)
Marshaling\EmptyJSGenerator.cs (1)
16
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Microsoft.Interop.SourceGeneration (37)
Marshalling\BlittableMarshaller.cs (1)
102
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\BoolMarshaller.cs (1)
100
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\ByValueContentsMarshalKindValidator.cs (6)
37
var
support = generator.Generator.SupportsByValueMarshalKind(generator.Generator.TypeInfo.ByValueContentsMarshalKind, out GeneratorDiagnostic? diagnostic);
38
Debug.Assert(support ==
ByValueMarshalKindSupport
.Supported || diagnostic is not null);
41
ByValueMarshalKindSupport
.Supported => generator,
42
ByValueMarshalKindSupport
.NotSupported => ResolvedGenerator.ResolvedWithDiagnostics(s_forwarder.Bind(generator.Generator.TypeInfo, context), generator.Diagnostics.Add(diagnostic!)),
43
ByValueMarshalKindSupport
.Unnecessary => generator with { Diagnostics = generator.Diagnostics.Add(diagnostic!) },
44
ByValueMarshalKindSupport
.NotRecommended => generator with { Diagnostics = generator.Diagnostics.Add(diagnostic!) },
Marshalling\ByValueMarshalKindSupportDescriptor.cs (19)
10
public record struct ByValueMarshalKindSupportInfo(
ByValueMarshalKindSupport
Support, string? details)
12
public
ByValueMarshalKindSupport
GetSupport(TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
16
ByValueMarshalKindSupport
.Supported => null,
17
ByValueMarshalKindSupport
.NotRecommended =>
22
ByValueMarshalKindSupport
.Unnecessary =>
30
ByValueMarshalKindSupport
.NotSupported =>
54
DefaultSupport: new(
ByValueMarshalKindSupport
.Supported, null),
55
InSupport: new(
ByValueMarshalKindSupport
.NotSupported, SR.InAttributeNotSupportedOnByValueParameters),
56
OutSupport: new(
ByValueMarshalKindSupport
.NotSupported, SR.OutAttributeNotSupportedOnByValueParameters),
57
InOutSupport: new(
ByValueMarshalKindSupport
.NotSupported, SR.InOutAttributeNotSupportedOnByValueParameters));
63
DefaultSupport: new(
ByValueMarshalKindSupport
.NotRecommended, SR.PreferExplicitInOutAttributesOnArrays),
64
InSupport: new(
ByValueMarshalKindSupport
.Supported, null),
65
OutSupport: new(
ByValueMarshalKindSupport
.Supported, null),
66
InOutSupport: new(
ByValueMarshalKindSupport
.Supported, null));
69
/// Returns the support for the ByValueContentsMarshalKind, and if it is not <see cref="
ByValueMarshalKindSupport
.Supported"/>, diagnostic is not null
71
public
ByValueMarshalKindSupport
GetSupport(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
82
return
ByValueMarshalKindSupport
.NotSupported;
86
return
ByValueMarshalKindSupport
.Supported;
93
return
ByValueMarshalKindSupport
.Supported;
Marshalling\CharMarshaller.cs (1)
137
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\CustomTypeMarshallingGenerator.cs (2)
93
&& byValueContentsMarshallingSupport.GetSupport(TypeInfo.ByValueContentsMarshalKind, TypeInfo, out _) !=
ByValueMarshalKindSupport
.NotSupported
99
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)
Marshalling\DelegateMarshaller.cs (1)
95
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\Forwarder.cs (1)
34
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\MarshallingGenerator.cs (4)
144
/// The diagnostic to report if the return value is not <see cref="
ByValueMarshalKindSupport
.Supported"/>.
145
/// It should be non-null if the value is not <see cref="
ByValueMarshalKindSupport
.Supported"/>
148
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic);
174
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
99
public
ByValueMarshalKindSupport
SupportsByValueMarshalKind(ByValueContentsMarshalKind marshalKind, out GeneratorDiagnostic? diagnostic)