17 writes to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (5)
VirtualMethodPointerStubGenerator.cs (5)
282NativeIndex = 0, 288NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 304NativeIndex = 0, 319NativeIndex = TypePositionInfo.IncrementIndex(unmanagedToManagedElement.NativeIndex) 332NativeIndex = TypePositionInfo.ReturnIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (5)
JSExportGenerator.cs (2)
313NativeIndex = signatureElements.Length, // Insert at the end of the argument list 327NativeIndex = allElements.Length, // Insert at the end of the argument list
JSImportGenerator.cs (3)
205NativeIndex = 0, 213NativeIndex = 1, 240NativeIndex = updatedInfo.NativeIndex + NumImplicitArguments
Microsoft.Interop.SourceGeneration (7)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
SignatureContext.cs (6)
149NativeIndex = typeInfos.Count 161NativeIndex = TypePositionInfo.ReturnIndex, 183NativeIndex = nativeIndex, 201infos[returnIndex] = returnInfo with { NativeIndex = TypePositionInfo.UnsetIndex }; 211infos[hiddenReturnIndex] = hiddenReturnInfo with { NativeIndex = TypePositionInfo.UnsetIndex }; 220NativeIndex = method.Parameters.Length,
30 references to NativeIndex
Microsoft.Interop.ComInterfaceGenerator (2)
VirtualMethodPointerStubGenerator.cs (2)
288NativeIndex = TypePositionInfo.IncrementIndex(element.NativeIndex) 319NativeIndex = TypePositionInfo.IncrementIndex(unmanagedToManagedElement.NativeIndex)
Microsoft.Interop.JavaScript.JSImportGenerator (6)
JSExportGenerator.cs (3)
365foreach (var nativeArg in signatureElements.Where(e => e.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(e => e.NativeIndex)) 380LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(nativeArg.NativeIndex + 2))))))));
JSImportGenerator.cs (1)
240NativeIndex = updatedInfo.NativeIndex + NumImplicitArguments
SignatureBindingHelpers.cs (2)
19foreach (TypePositionInfo element in elements.Where(e => e.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(e => e.NativeIndex))
Microsoft.Interop.SourceGeneration (22)
BoundGenerators.cs (13)
62if (!TypePositionInfo.IsSpecialIndex(argType.NativeIndex)) 90else if (!TypePositionInfo.IsSpecialIndex(errorHandlingInfo.NativeIndex)) 104else if (errorHandlingInfo.NativeIndex is not (TypePositionInfo.UnsetIndex or TypePositionInfo.ExceptionIndex)) 106overlappedMarshaller = nativeParamMarshallers.FirstOrDefault(e => e.TypeInfo.NativeIndex == errorHandlingInfo.NativeIndex); 133if (overlappedMarshaller is null && !TypePositionInfo.IsSpecialIndex(errorHandlingInfo.NativeIndex)) 143nativeParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.NativeIndex.CompareTo(m2.TypeInfo.NativeIndex)); 198return (false, info.NativeIndex); 209return (false, info.NativeIndex); 221return TypePositionInfo.IsSpecialIndex(info.NativeIndex) 224marshaller => marshaller.TypeInfo.NativeIndex == info.NativeIndex);
ManagedToNativeStubGenerator.cs (2)
67: argTypes.FirstOrDefault(info => !info.IsErrorHandlingPosition && info.NativeIndex == errorHandlingInfo.NativeIndex);
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
216NativeIndex = info.NativeIndex,
MarshallingAttributeInfo.cs (2)
145if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 155if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
SignatureContext.cs (1)
231infos.Add(CreateErrorInfo(lastParameter.NativeIndex));
TypePositionInfo.cs (3)
75public bool IsNativeReturnPosition { get => NativeIndex == ReturnIndex; } 85return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex;