47 references to ByValueContentsMarshalKind
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 (3)
JSGeneratorFactory.cs (1)
19
if (info.IsByRef || info.ByValueContentsMarshalKind !=
ByValueContentsMarshalKind
.Default)
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 (38)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
453
private static RefKind CreateElementRefKind(RefKind refKind,
ByValueContentsMarshalKind
byValueContentsMarshalKind)
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\ByValueMarshalKindSupportDescriptor.cs (9)
42
/// Provides an implementation of <see cref="IUnboundMarshallingGenerator.SupportsByValueMarshalKind(
ByValueContentsMarshalKind
, TypePositionInfo, out GeneratorDiagnostic?)"/> through <see cref="GetSupport(
ByValueContentsMarshalKind
, TypePositionInfo, out GeneratorDiagnostic?)"/>
71
public ByValueMarshalKindSupport GetSupport(
ByValueContentsMarshalKind
marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
76
if (marshalKind !=
ByValueContentsMarshalKind
.Default)
91
Debug.Assert(marshalKind is
ByValueContentsMarshalKind
.Default);
98
ByValueContentsMarshalKind
.Default => DefaultSupport.GetSupport(info, out diagnostic),
99
ByValueContentsMarshalKind
.In => InSupport.GetSupport(info, out diagnostic),
100
ByValueContentsMarshalKind
.Out => OutSupport.GetSupport(info, out diagnostic),
101
ByValueContentsMarshalKind
.InOut => InOutSupport.GetSupport(info, out diagnostic),
Marshalling\CharMarshaller.cs (1)
137
public ByValueMarshalKindSupport SupportsByValueMarshalKind(
ByValueContentsMarshalKind
marshalKind, TypePositionInfo info, out GeneratorDiagnostic? diagnostic)
Marshalling\CustomTypeMarshallingGenerator.cs (2)
92
=> TypeInfo.ByValueContentsMarshalKind.HasFlag(
ByValueContentsMarshalKind
.Out)
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\MarshallerHelpers.cs (5)
18
public static RefKind GetRefKindForByValueContentsKind(this
ByValueContentsMarshalKind
byValue)
22
ByValueContentsMarshalKind
.Default => RefKind.None,
23
ByValueContentsMarshalKind
.In => RefKind.In,
24
ByValueContentsMarshalKind
.InOut => RefKind.Ref,
25
ByValueContentsMarshalKind
.Out => RefKind.Out,
Marshalling\MarshallingGenerator.cs (7)
58
/// An enumeration describing if the provided <see cref="
ByValueContentsMarshalKind
" /> is supported and changes behavior from the default behavior.
63
/// The provided <see cref="
ByValueContentsMarshalKind
" /> is supported and changes behavior from the default behavior.
67
/// The provided <see cref="
ByValueContentsMarshalKind
" /> is not supported.
71
/// The provided <see cref="
ByValueContentsMarshalKind
" /> is supported but does not change behavior from the default in this scenario.
75
/// The provided <see cref="
ByValueContentsMarshalKind
" /> is supported but does not follow best practices.
148
ByValueMarshalKindSupport SupportsByValueMarshalKind(
ByValueContentsMarshalKind
marshalKind, out GeneratorDiagnostic? diagnostic);
174
public ByValueMarshalKindSupport SupportsByValueMarshalKind(
ByValueContentsMarshalKind
marshalKind, out GeneratorDiagnostic? diagnostic)
Marshalling\MarshallingGeneratorExtensions.cs (2)
116
if (info.ByValueContentsMarshalKind.HasFlag(
ByValueContentsMarshalKind
.In))
120
if (info.ByValueContentsMarshalKind.HasFlag(
ByValueContentsMarshalKind
.Out))
Marshalling\StaticPinnableManagedValueMarshaller.cs (1)
99
public ByValueMarshalKindSupport SupportsByValueMarshalKind(
ByValueContentsMarshalKind
marshalKind, out GeneratorDiagnostic? diagnostic)
TypePositionInfo.cs (6)
71
public
ByValueContentsMarshalKind
ByValueContentsMarshalKind { get; init; }
116
private static (
ByValueContentsMarshalKind
, Location? inAttribute, Location? outAttribute) GetByValueContentsMarshalKind(IEnumerable<AttributeData> attributes, Compilation compilation)
121
ByValueContentsMarshalKind
marshalKind =
ByValueContentsMarshalKind
.Default;
129
marshalKind |=
ByValueContentsMarshalKind
.Out;
134
marshalKind |=
ByValueContentsMarshalKind
.In;