56 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 (23)
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,
Marshaling\BaseJSGenerator.cs (1)
50
if (!TypeInfo.
IsManagedReturnPosition
)
Marshaling\FuncJSGenerator.cs (6)
35
var target = TypeInfo.
IsManagedReturnPosition
39
var source = TypeInfo.
IsManagedReturnPosition
48
if (context.CurrentStage == StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.
IsManagedReturnPosition
)
53
if (context.CurrentStage == StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.
IsManagedReturnPosition
)
63
if (context.CurrentStage == StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.
IsManagedReturnPosition
)
68
if (context.CurrentStage == StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.
IsManagedReturnPosition
)
Marshaling\PrimitiveJSGenerator.cs (6)
28
var target = TypeInfo.
IsManagedReturnPosition
32
var source = TypeInfo.
IsManagedReturnPosition
36
if (context.CurrentStage == StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.
IsManagedReturnPosition
)
41
if (context.CurrentStage == StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.
IsManagedReturnPosition
)
51
if (context.CurrentStage == StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.
IsManagedReturnPosition
)
56
if (context.CurrentStage == StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.
IsManagedReturnPosition
)
Marshaling\TaskJSGenerator.cs (6)
41
var target = TypeInfo.
IsManagedReturnPosition
45
var source = TypeInfo.
IsManagedReturnPosition
49
if (context.CurrentStage == StubIdentifierContext.Stage.UnmarshalCapture && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && TypeInfo.
IsManagedReturnPosition
)
56
if (context.CurrentStage == StubIdentifierContext.Stage.Marshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && TypeInfo.
IsManagedReturnPosition
)
68
if (context.CurrentStage == StubIdentifierContext.Stage.PinnedMarshal && CodeContext.Direction == MarshalDirection.ManagedToUnmanaged && !TypeInfo.
IsManagedReturnPosition
)
75
if (context.CurrentStage == StubIdentifierContext.Stage.Unmarshal && CodeContext.Direction == MarshalDirection.UnmanagedToManaged && !TypeInfo.
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)
307
if (info.
IsManagedReturnPosition
)
475
MarshalDirection.ManagedToUnmanaged => info.
IsManagedReturnPosition
,
491
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
)