11 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
315ManagedIndex = TypePositionInfo.ReturnIndex,
VirtualMethodPointerStubGenerator.cs (1)
226ManagedIndex = TypePositionInfo.ExceptionIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (2)
339ManagedIndex = TypePositionInfo.ExceptionIndex, 352ManagedIndex = TypePositionInfo.ReturnIndex,
JSImportGenerator.cs (1)
217ManagedIndex = TypePositionInfo.UnsetIndex,
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,
25 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
29if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.ManagedIndex == TypePositionInfo.UnsetIndex)
Microsoft.Interop.SourceGeneration (24)
BoundGenerators.cs (6)
59if (!TypePositionInfo.IsSpecialIndex(argType.ManagedIndex)) 120managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.ManagedIndex.CompareTo(m2.TypeInfo.ManagedIndex)); 164if (info.ManagedIndex == TypePositionInfo.UnsetIndex) 178if (info.ManagedIndex != TypePositionInfo.UnsetIndex) 180return (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 (2)
356|| info.ManagedIndex is TypePositionInfo.ReturnIndex) 370else if (countInfo.ElementInfo.ManagedIndex is TypePositionInfo.ReturnIndex)
MarshallingAttributeInfo.cs (2)
137if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 147if (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)
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];