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