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