11 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
315
ManagedIndex
= TypePositionInfo.ReturnIndex,
VirtualMethodPointerStubGenerator.cs (1)
226
ManagedIndex
= TypePositionInfo.ExceptionIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (2)
339
ManagedIndex
= TypePositionInfo.ExceptionIndex,
352
ManagedIndex
= TypePositionInfo.ReturnIndex,
JSImportGenerator.cs (1)
217
ManagedIndex
= TypePositionInfo.UnsetIndex,
Microsoft.Interop.SourceGeneration (6)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215
ManagedIndex
= info.ManagedIndex,
MethodSignatureElementInfoProvider.cs (3)
37
ManagedIndex
= TypePositionInfo.ReturnIndex
51
ManagedIndex
= i
73
ManagedIndex
= paramIndex
SignatureContext.cs (2)
116
ManagedIndex
= i,
125
ManagedIndex
= TypePositionInfo.ReturnIndex,
25 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
29
if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.
ManagedIndex
== TypePositionInfo.UnsetIndex)
Microsoft.Interop.SourceGeneration (24)
BoundGenerators.cs (6)
59
if (!TypePositionInfo.IsSpecialIndex(argType.
ManagedIndex
))
120
managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.
ManagedIndex
.CompareTo(m2.TypeInfo.
ManagedIndex
));
164
if (info.
ManagedIndex
== TypePositionInfo.UnsetIndex)
178
if (info.
ManagedIndex
!= TypePositionInfo.UnsetIndex)
180
return (true, info.
ManagedIndex
);
MarshalAsParser.cs (1)
104
if (sizeParamIndex.ParamAtIndex is {
ManagedIndex
: int paramIndex })
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215
ManagedIndex = info.
ManagedIndex
,
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
89
if (info.
ManagedIndex
< 0)
Marshalling\MarshallerHelpers.cs (2)
356
|| info.
ManagedIndex
is TypePositionInfo.ReturnIndex)
370
else if (countInfo.ElementInfo.
ManagedIndex
is TypePositionInfo.ReturnIndex)
MarshallingAttributeInfo.cs (2)
137
if (nestedCountElement.
ManagedIndex
!= TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex)
147
if (nestedElement.
ManagedIndex
!= TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
MethodSignatureDiagnosticLocations.cs (1)
65
{
ManagedIndex
: >= 0 and int index, InstanceIdentifier: string identifier } => (ManagedParameterLocations[index], identifier),
SignatureContext.cs (3)
32
public IEnumerable<TypePositionInfo> ManagedParameters => ElementTypeInformation.Where(tpi => !TypePositionInfo.IsSpecialIndex(tpi.
ManagedIndex
));
42
if (typeInfo.
ManagedIndex
!= TypePositionInfo.UnsetIndex
43
&& typeInfo.
ManagedIndex
!= TypePositionInfo.ReturnIndex)
TypePositionInfo.cs (7)
75
public bool IsManagedReturnPosition { get =>
ManagedIndex
== ReturnIndex; }
77
public bool IsManagedExceptionPosition { get =>
ManagedIndex
== ExceptionIndex; }
85
return
ManagedIndex
== other.
ManagedIndex
&& NativeIndex == other.NativeIndex;
107
if (info.
ManagedIndex
is UnsetIndex)
110
if (info.
ManagedIndex
is ReturnIndex or ExceptionIndex)
113
return methodSymbol.Parameters[info.
ManagedIndex
].Locations[0];