11 writes to ManagedIndex
Microsoft.Interop.ComInterfaceGenerator (1)
VirtualMethodPointerStubGenerator.cs (1)
182
ManagedIndex
= TypePositionInfo.ExceptionIndex,
Microsoft.Interop.JavaScript.JSImportGenerator (3)
JSExportGenerator.cs (2)
166
ManagedIndex
= TypePositionInfo.ExceptionIndex,
179
ManagedIndex
= TypePositionInfo.ReturnIndex,
JSImportGenerator.cs (1)
120
ManagedIndex
= TypePositionInfo.UnsetIndex,
Microsoft.Interop.SourceGeneration (7)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
199
ManagedIndex
= info.ManagedIndex,
MethodSignatureElementInfoProvider.cs (3)
38
ManagedIndex
= TypePositionInfo.ReturnIndex
52
ManagedIndex
= i
74
ManagedIndex
= paramIndex
SignatureContext.cs (3)
129
ManagedIndex
= i,
141
ManagedIndex
= TypePositionInfo.ReturnIndex,
163
ManagedIndex
= TypePositionInfo.ErrorIndex,
30 references to ManagedIndex
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSGeneratorFactory.cs (1)
29
if (MarshallerHelpers.GetMarshalDirection(info, context) != MarshalDirection.UnmanagedToManaged && info.
ManagedIndex
== TypePositionInfo.UnsetIndex)
Microsoft.Interop.SourceGeneration (29)
BoundGenerators.cs (6)
55
if (!TypePositionInfo.IsSpecialIndex(argType.
ManagedIndex
))
139
managedParamMarshallers.Sort(static (m1, m2) => m1.TypeInfo.
ManagedIndex
.CompareTo(m2.TypeInfo.
ManagedIndex
));
183
if (info.
ManagedIndex
== TypePositionInfo.UnsetIndex)
202
if (info.
ManagedIndex
!= TypePositionInfo.UnsetIndex)
204
return (true, info.
ManagedIndex
);
DefaultIdentifierContext.cs (1)
34
ManagedIndex
: TypePositionInfo.ErrorIndex,
MarshalAsParser.cs (2)
69
if (IidParameterIndexInfo is {
ManagedIndex
: int paramIndex } && !TypePositionInfo.IsSpecialIndex(paramIndex))
107
if (sizeParamIndex.ParamAtIndex is {
ManagedIndex
: int paramIndex })
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (1)
199
ManagedIndex = info.
ManagedIndex
,
Marshalling\ByValueMarshalKindSupportDescriptor.cs (1)
80
if (info.
ManagedIndex
< 0)
Marshalling\MarshallerHelpers.cs (2)
342
|| info.
ManagedIndex
is TypePositionInfo.ReturnIndex)
356
else if (countInfo.ElementInfo.
ManagedIndex
is TypePositionInfo.ReturnIndex)
MarshallingAttributeInfo.cs (2)
143
if (nestedCountElement.
ManagedIndex
!= TypePositionInfo.UnsetIndex || nestedCountElement.NativeIndex != TypePositionInfo.UnsetIndex)
153
if (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)
30
public IEnumerable<TypePositionInfo> ManagedParameters => ElementTypeInformation.Where(tpi => !TypePositionInfo.IsSpecialIndex(tpi.
ManagedIndex
));
40
if (!TypePositionInfo.IsSpecialIndex(typeInfo.
ManagedIndex
))
226
if (!TypePositionInfo.IsSpecialIndex(info.
ManagedIndex
)
227
&& (lastParameter is null || info.
ManagedIndex
> lastParameter.
ManagedIndex
))
TypePositionInfo.cs (7)
73
public bool IsManagedReturnPosition { get =>
ManagedIndex
== ReturnIndex; }
76
public bool IsManagedIdentifierSynthetic => IsSpecialIndex(
ManagedIndex
);
84
return
ManagedIndex
== other.
ManagedIndex
&& NativeIndex == other.NativeIndex;
103
if (info.
ManagedIndex
is UnsetIndex)
106
if (info.
ManagedIndex
is ReturnIndex or ErrorIndex)
109
return methodSymbol.Parameters[info.
ManagedIndex
].Locations[0];
VariableDeclarations.cs (1)
40
if (errorInfo is { IsErrorHandlingPosition: true,
ManagedIndex
: TypePositionInfo.ErrorIndex }