9 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (2)
ComInterfaceGenerator.cs (1)
301ManagedIndex = TypePositionInfo.ReturnIndex,
VirtualMethodPointerStubGenerator.cs (1)
137ManagedIndex = TypePositionInfo.ExceptionIndex,
Microsoft.Interop.SourceGeneration (7)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
311ManagedIndex = info.ManagedIndex,
Marshalling\ElementsMarshalling.cs (1)
473ManagedIndex = info.ManagedIndex,
MethodSignatureElementInfoProvider.cs (3)
37ManagedIndex = TypePositionInfo.ReturnIndex 51ManagedIndex = i 73ManagedIndex = paramIndex
SignatureContext.cs (2)
116ManagedIndex = i, 125ManagedIndex = TypePositionInfo.ReturnIndex,
26 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSGeneratorFactory.cs (1)
36bool isToJs = info.ManagedIndex != TypePositionInfo.ReturnIndex ^ context is JSExportCodeContext;
Marshaling\BaseJSGenerator.cs (1)
48Argument(LiteralExpression(SyntaxKind.NumericLiteralExpression, Literal(info.ManagedIndex + 2))))))))))));
Microsoft.Interop.SourceGeneration (24)
BoundGenerators.cs (6)
61if (!TypePositionInfo.IsSpecialIndex(argType.ManagedIndex)) 72managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.ManagedIndex.CompareTo(m2.TypeInfo.ManagedIndex)); 135if (info.ManagedIndex == TypePositionInfo.UnsetIndex) 149if (info.ManagedIndex != TypePositionInfo.UnsetIndex) 151return (true, info.ManagedIndex);
ManagedToNativeStubCodeContext.cs (1)
47Debug.Assert(info.ManagedIndex == TypePositionInfo.UnsetIndex);
MarshalAsParser.cs (1)
104if (sizeParamIndex.ParamAtIndex is { ManagedIndex: int paramIndex })
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
311ManagedIndex = info.ManagedIndex,
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
90if (info.ManagedIndex < 0)
Marshalling\ElementsMarshalling.cs (1)
473ManagedIndex = info.ManagedIndex,
Marshalling\MarshallerHelpers.cs (4)
225if (nestedCountElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex) 234if (nestedElement.ManagedIndex != TypePositionInfo.UnsetIndex || nestedElement.NativeIndex != TypePositionInfo.UnsetIndex) 367|| info.ManagedIndex is TypePositionInfo.ReturnIndex) 381else if (countInfo.ElementInfo.ManagedIndex is TypePositionInfo.ReturnIndex)
MethodSignatureDiagnosticLocations.cs (1)
65{ ManagedIndex: >= 0 and int index, InstanceIdentifier: string identifier } => (ManagedParameterLocations[index], identifier),
SignatureContext.cs (3)
32public IEnumerable<TypePositionInfo> ManagedParameters => ElementTypeInformation.Where(tpi => !TypePositionInfo.IsSpecialIndex(tpi.ManagedIndex)); 42if (typeInfo.ManagedIndex != TypePositionInfo.UnsetIndex 43&& typeInfo.ManagedIndex != TypePositionInfo.ReturnIndex)
TypePositionInfo.cs (5)
75public bool IsManagedReturnPosition { get => ManagedIndex == ReturnIndex; } 77public bool IsManagedExceptionPosition { get => ManagedIndex == ExceptionIndex; } 102if (info.ManagedIndex is UnsetIndex) 105if (info.ManagedIndex is ReturnIndex or ExceptionIndex) 108return methodSymbol.Parameters[info.ManagedIndex].Locations[0];