11 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (1)
VirtualMethodPointerStubGenerator.cs (1)
331ManagedIndex = TypePositionInfo.ExceptionIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (2)
312ManagedIndex = TypePositionInfo.ExceptionIndex, 326ManagedIndex = TypePositionInfo.ReturnIndex,
JSImportGenerator.cs (1)
197ManagedIndex = TypePositionInfo.UnsetIndex,
Microsoft.Interop.SourceGeneration (7)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215ManagedIndex = info.ManagedIndex,
MethodSignatureElementInfoProvider.cs (3)
38ManagedIndex = TypePositionInfo.ReturnIndex 52ManagedIndex = i 74ManagedIndex = paramIndex
SignatureContext.cs (3)
148ManagedIndex = i, 160ManagedIndex = TypePositionInfo.ReturnIndex, 182ManagedIndex = TypePositionInfo.ErrorIndex,
30 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
29if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.ManagedIndex == TypePositionInfo.UnsetIndex)
Microsoft.Interop.SourceGeneration (29)
BoundGenerators.cs (6)
58if (!TypePositionInfo.IsSpecialIndex(argType.ManagedIndex)) 142managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.ManagedIndex.CompareTo(m2.TypeInfo.ManagedIndex)); 186if (info.ManagedIndex == TypePositionInfo.UnsetIndex) 205if (info.ManagedIndex != TypePositionInfo.UnsetIndex) 207return (true, info.ManagedIndex);
DefaultIdentifierContext.cs (1)
34ManagedIndex: TypePositionInfo.ErrorIndex,
MarshalAsParser.cs (2)
81if (IidParameterIndexInfo is { ManagedIndex: int paramIndex } && !TypePositionInfo.IsSpecialIndex(paramIndex)) 137if (sizeParamIndex.ParamAtIndex is { ManagedIndex: int paramIndex })
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
215ManagedIndex = info.ManagedIndex,
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
80if (info.ManagedIndex < 0)
Marshalling\MarshallerHelpers.cs (2)
363|| info.ManagedIndex is TypePositionInfo.ReturnIndex) 377else if (countInfo.ElementInfo.ManagedIndex is TypePositionInfo.ReturnIndex)
MarshallingAttributeInfo.cs (2)
145if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 155if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex)
MethodSignatureDiagnosticLocations.cs (1)
74{ ManagedIndex: >= 0 and int index, InstanceIdentifier: string identifier } => (ManagedParameterLocations[index], identifier),
SignatureContext.cs (5)
33public IEnumerable<TypePositionInfo> ManagedParameters => ElementTypeInformation.Where(tpi => !TypePositionInfo.IsSpecialIndex(tpi.ManagedIndex)); 43if (!TypePositionInfo.IsSpecialIndex(typeInfo.ManagedIndex)) 245if (!TypePositionInfo.IsSpecialIndex(info.ManagedIndex) 246&& (lastParameter is null || info.ManagedIndex > lastParameter.ManagedIndex))
TypePositionInfo.cs (7)
74public bool IsManagedReturnPosition { get => ManagedIndex == ReturnIndex; } 77public bool IsManagedIdentifierSynthetic => IsSpecialIndex(ManagedIndex); 85return ManagedIndex == other.ManagedIndex && NativeIndex == other.NativeIndex; 104if (info.ManagedIndex is UnsetIndex) 107if (info.ManagedIndex is ReturnIndex or ErrorIndex) 110return methodSymbol.Parameters[info.ManagedIndex].Locations[0];
VariableDeclarations.cs (1)
55ManagedIndex: TypePositionInfo.ErrorIndex,