14 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.JavaScript.JSImportGenerator (4)
JSExportGenerator.cs (2)
340NativeIndex = signatureElements.Length, // Insert at the end of the argument list 353NativeIndex = allElements.Length, // Insert at the end of the argument list
JSImportGenerator.cs (2)
225NativeIndex = 0, 233NativeIndex = 1,
Microsoft.Interop.SourceGeneration (3)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
SignatureContext.cs (2)
117NativeIndex = typeInfos.Count 126NativeIndex = TypePositionInfo.ReturnIndex,
21 references to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (2)
192NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 214NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex)
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (3)
392foreach (var nativeArg in signatureElements.Where(e => e.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(e => e.NativeIndex)) 407LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(nativeArg.NativeIndex + 2))))))));
SignatureBindingHelpers.cs (2)
19foreach (TypePositionInfo element in elements.Where(e => e.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(e => e.NativeIndex))
Microsoft.Interop.SourceGeneration (14)
BoundGenerators.cs (8)
63if (!TypePositionInfo.IsSpecialIndex(argType.NativeIndex)) 82else if (managedExceptionInfo.NativeIndex is not (TypePositionInfo.UnsetIndex or TypePositionInfo.ExceptionIndex)) 84overlappedMarshaller = nativeParamMarshallers.FirstOrDefault(e => e.TypeInfo.NativeIndex == managedExceptionInfo.NativeIndex); 111if (overlappedMarshaller is null && !TypePositionInfo.IsSpecialIndex(managedExceptionInfo.NativeIndex)) 121nativeParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.NativeIndex.CompareTo(m2.TypeInfo.NativeIndex)); 182return (false, info.NativeIndex);
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
MarshallingAttributeInfo.cs (2)
137if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 147if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
TypePositionInfo.cs (3)
76public bool IsNativeReturnPosition { get => NativeIndex == ReturnIndex; } 85return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex;