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