39 references to IsManagedReturnPosition
Microsoft.Interop.ComInterfaceGenerator (10)
ComInterfaceGenerator.cs (2)
294
if (returnSwappedSignatureElements[i].
IsManagedReturnPosition
)
340
TypePositionInfo? managedReturnInfo = signatureContext.ElementTypeInformation.FirstOrDefault(e => e.
IsManagedReturnPosition
);
DiagnosticDescriptorProvider.cs (8)
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
25
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
26
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
27
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
28
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
31
{ TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
32
{ TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.JavaScript.JSImportGenerator (6)
DescriptorProvider.cs (4)
20
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
23
{ TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
24
{ TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
JSGeneratorFactory.cs (1)
20
if (!info.IsManagedExceptionPosition && !info.
IsManagedReturnPosition
&& (info.IsByRef || info.ByValueContentsMarshalKind != ByValueContentsMarshalKind.Default))
NoSpanAndTaskMixingResolver.cs (1)
24
if (info.MarshallingAttributeInfo is JSMarshallingInfo(_, JSTaskTypeInfo) && info.
IsManagedReturnPosition
)
Microsoft.Interop.LibraryImportGenerator (8)
DiagnosticDescriptorProvider.cs (8)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
25
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
26
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
29
{ TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
30
{ TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.LibraryImportGenerator.Downlevel (8)
DiagnosticDescriptorProvider.cs (8)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: {
IsManagedReturnPosition
: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
25
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
26
GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
29
{ TypePositionInfo.
IsManagedReturnPosition
: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
30
{ TypePositionInfo.
IsManagedReturnPosition
: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.SourceGeneration (7)
BoundGenerators.cs (1)
49
if (argType.
IsManagedReturnPosition
)
Marshalling\MarshallerHelpers.cs (3)
280
if (info.
IsManagedReturnPosition
)
448
MarshalDirection.ManagedToUnmanaged => info.
IsManagedReturnPosition
,
464
MarshalDirection.UnmanagedToManaged => info.
IsManagedReturnPosition
,
VariableDeclarations.cs (3)
24
if (info.
IsManagedReturnPosition
)
60
if (marshaller.TypeInfo.
IsManagedReturnPosition
|| marshaller.TypeInfo.IsNativeReturnPosition)
87
if (info.IsNativeReturnPosition || info.
IsManagedReturnPosition
)