19 references to UnsetIndex
Microsoft.Interop.JavaScript.JSImportGenerator (4)
JSExportGenerator.cs (1)
236foreach (TypePositionInfo nativeArgument in signatureElements.Where(static element => element.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(static element => element.NativeIndex))
JSGeneratorFactory.cs (1)
29if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.ManagedIndex == TypePositionInfo.UnsetIndex)
JSImportGenerator.cs (1)
120ManagedIndex = TypePositionInfo.UnsetIndex,
SignatureBindingHelpers.cs (1)
17foreach (TypePositionInfo element in elements.Where(static element => element.NativeIndex != TypePositionInfo.UnsetIndex).OrderBy(static element => element.NativeIndex))
Microsoft.Interop.SourceGeneration (15)
BoundGenerators.cs (3)
101else if (errorHandlingInfo.NativeIndex is not (TypePositionInfo.UnsetIndex or TypePositionInfo.ExceptionIndex)) 183if (info.ManagedIndex == TypePositionInfo.UnsetIndex) 202if (info.ManagedIndex != TypePositionInfo.UnsetIndex)
MarshallingAttributeInfo.cs (4)
143if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 153if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
SignatureContext.cs (2)
182infos[returnIndex] = returnInfo with { NativeIndex = TypePositionInfo.UnsetIndex }; 192infos[hiddenReturnIndex] = hiddenReturnInfo with { NativeIndex = TypePositionInfo.UnsetIndex };
TypePositionInfo.cs (6)
49public const int ReturnIndex = UnsetIndex + 1; 50public const int ErrorIndex = UnsetIndex + 2; 55return index is UnsetIndex or ReturnIndex or ErrorIndex; 78public int ManagedIndex { get; init; } = UnsetIndex; 79public int NativeIndex { get; init; } = UnsetIndex; 103if (info.ManagedIndex is UnsetIndex)