8 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
315
ManagedIndex
= TypePositionInfo.ReturnIndex,
VirtualMethodPointerStubGenerator.cs (1)
226
ManagedIndex
= TypePositionInfo.ExceptionIndex,
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,
26 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSGeneratorFactory.cs (1)
36
bool isToJs = info.
ManagedIndex
!= TypePositionInfo.ReturnIndex ^ context.Direction == MarshalDirection.UnmanagedToManaged;
Marshaling\BaseJSGenerator.cs (1)
56
Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(TypeInfo.
ManagedIndex
+ 2))))))))))));
Microsoft.Interop.SourceGeneration (24)
BoundGenerators.cs (6)
59
if (!TypePositionInfo.IsSpecialIndex(argType.
ManagedIndex
))
70
managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.
ManagedIndex
.CompareTo(m2.TypeInfo.
ManagedIndex
));
133
if (info.
ManagedIndex
== TypePositionInfo.UnsetIndex)
147
if (info.
ManagedIndex
!= TypePositionInfo.UnsetIndex)
149
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 (4)
241
if (nestedCountElement.
ManagedIndex
!= TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex)
250
if (nestedElement.
ManagedIndex
!= TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
383
|| info.
ManagedIndex
is TypePositionInfo.ReturnIndex)
397
else if (countInfo.ElementInfo.
ManagedIndex
is TypePositionInfo.ReturnIndex)
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];