8 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
315ManagedIndex = TypePositionInfo.ReturnIndex,
VirtualMethodPointerStubGenerator.cs (1)
226ManagedIndex = TypePositionInfo.ExceptionIndex,
Microsoft.Interop.SourceGeneration (6)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215ManagedIndex = info.ManagedIndex,
MethodSignatureElementInfoProvider.cs (3)
37ManagedIndex = TypePositionInfo.ReturnIndex 51ManagedIndex = i 73ManagedIndex = paramIndex
SignatureContext.cs (2)
116ManagedIndex = i, 125ManagedIndex = TypePositionInfo.ReturnIndex,
26 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSGeneratorFactory.cs (1)
36bool isToJs = info.ManagedIndex != TypePositionInfo.ReturnIndex ^ context.Direction == MarshalDirection.UnmanagedToManaged;
Marshaling\BaseJSGenerator.cs (1)
56Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(TypeInfo.ManagedIndex + 2))))))))))));
Microsoft.Interop.SourceGeneration (24)
BoundGenerators.cs (6)
59if (!TypePositionInfo.IsSpecialIndex(argType.ManagedIndex)) 70managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.ManagedIndex.CompareTo(m2.TypeInfo.ManagedIndex)); 133if (info.ManagedIndex == TypePositionInfo.UnsetIndex) 147if (info.ManagedIndex != TypePositionInfo.UnsetIndex) 149return (true, info.ManagedIndex);
MarshalAsParser.cs (1)
104if (sizeParamIndex.ParamAtIndex is { ManagedIndex: int paramIndex })
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215ManagedIndex = info.ManagedIndex,
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
89if (info.ManagedIndex < 0)
Marshalling\MarshallerHelpers.cs (4)
241if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 250if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex) 383|| info.ManagedIndex is TypePositionInfo.ReturnIndex) 397else 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)
32public IEnumerable<TypePositionInfo> ManagedParameters => ElementTypeInformation.Where(tpi => !TypePositionInfo.IsSpecialIndex(tpi.ManagedIndex)); 42if (typeInfo.ManagedIndex != TypePositionInfo.UnsetIndex 43&& typeInfo.ManagedIndex != TypePositionInfo.ReturnIndex)
TypePositionInfo.cs (7)
75public bool IsManagedReturnPosition { get => ManagedIndex == ReturnIndex; } 77public bool IsManagedExceptionPosition { get => ManagedIndex == ExceptionIndex; } 85return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex; 107if (info.ManagedIndex is UnsetIndex) 110if (info.ManagedIndex is ReturnIndex or ExceptionIndex) 113return methodSymbol.Parameters[info.ManagedIndex].Locations[0];