17 writes to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (5)
VirtualMethodPointerStubGenerator.cs (5)
134NativeIndex = 0, 140NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 155NativeIndex = 0, 170NativeIndex = TypePositionInfo.IncrementIndex(unmanagedToManagedElement.NativeIndex) 183NativeIndex = TypePositionInfo.ReturnIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (2)
167NativeIndex = signatureElements.Length, 180NativeIndex = allElements.Length,
JSImportGenerator.cs (3)
126NativeIndex = 0, 131NativeIndex = 1, 152: updatedInfo with { NativeIndex = updatedInfo.NativeIndex + NumImplicitArguments });
Microsoft.Interop.SourceGeneration (7)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
200NativeIndex = info.NativeIndex,
SignatureContext.cs (6)
130NativeIndex = typeInfos.Count 142NativeIndex = TypePositionInfo.ReturnIndex, 164NativeIndex = nativeIndex, 182infos[returnIndex] = returnInfo with { NativeIndex = TypePositionInfo.UnsetIndex }; 192infos[hiddenReturnIndex] = hiddenReturnInfo with { NativeIndex = TypePositionInfo.UnsetIndex }; 201NativeIndex = method.Parameters.Length,
30 references to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (2)
140NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 170NativeIndex = TypePositionInfo.IncrementIndex(unmanagedToManagedElement.NativeIndex)
Microsoft.Interop.JavaScript.JSImportGenerator (6)
JSExportGenerator.cs (3)
236foreach (TypePositionInfo nativeArgument in signatureElements.Where(static element => element.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(static element => element.NativeIndex)) 243writer.Write($"{Constants.ArgumentsBuffer}[{nativeArgument.NativeIndex + 2}], ");
JSImportGenerator.cs (1)
152: updatedInfo with { NativeIndex = updatedInfo.NativeIndex + NumImplicitArguments });
SignatureBindingHelpers.cs (2)
17foreach (TypePositionInfo element in elements.Where(static element => element.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(static element => element.NativeIndex))
Microsoft.Interop.SourceGeneration (22)
BoundGenerators.cs (13)
59if (!TypePositionInfo.IsSpecialIndex(argType.NativeIndex)) 87else if (!TypePositionInfo.IsSpecialIndex(errorHandlingInfo.NativeIndex)) 101else if (errorHandlingInfo.NativeIndex is not (TypePositionInfo.UnsetIndex or TypePositionInfo.ExceptionIndex)) 103overlappedMarshaller = nativeParamMarshallers.FirstOrDefault(e => e.TypeInfo.NativeIndex == errorHandlingInfo.NativeIndex); 130if (overlappedMarshaller is null && !TypePositionInfo.IsSpecialIndex(errorHandlingInfo.NativeIndex)) 140nativeParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.NativeIndex.CompareTo(m2.TypeInfo.NativeIndex)); 195return (false, info.NativeIndex); 206return (false, info.NativeIndex); 218return TypePositionInfo.IsSpecialIndex(info.NativeIndex) 221marshaller => marshaller.TypeInfo.NativeIndex == info.NativeIndex);
ManagedToNativeStubGenerator.cs (2)
46: argTypes.FirstOrDefault(info => !info.IsErrorHandlingPosition && info.NativeIndex == errorHandlingInfo.NativeIndex);
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
200NativeIndex = info.NativeIndex,
MarshallingAttributeInfo.cs (2)
143if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 153if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
SignatureContext.cs (1)
212infos.Add(CreateErrorInfo(lastParameter.NativeIndex));
TypePositionInfo.cs (3)
74public bool IsNativeReturnPosition { get => NativeIndex == ReturnIndex; } 84return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex;