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