10 writes to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (7)
ComInterfaceGenerator.cs (2)
316NativeIndex = symbol.Parameters.Length 331NativeIndex = TypePositionInfo.ReturnIndex
VirtualMethodPointerStubGenerator.cs (5)
186NativeIndex = 0, 192NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 208NativeIndex = 0, 214NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 227NativeIndex = TypePositionInfo.ReturnIndex
Microsoft.Interop.SourceGeneration (3)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
SignatureContext.cs (2)
117NativeIndex = typeInfos.Count 126NativeIndex = TypePositionInfo.ReturnIndex,
12 references to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (2)
192NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 214NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex)
Microsoft.Interop.SourceGeneration (10)
BoundGenerators.cs (4)
63if (!TypePositionInfo.IsSpecialIndex(argType.NativeIndex)) 71nativeParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.NativeIndex.CompareTo(m2.TypeInfo.NativeIndex)); 151return (false, info.NativeIndex);
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
Marshalling\MarshallerHelpers.cs (2)
241if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 250if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
TypePositionInfo.cs (3)
76public bool IsNativeReturnPosition { get => NativeIndex == ReturnIndex; } 85return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex;