1 instantiation of SizeAndParamIndexInfo
Microsoft.Interop.SourceGeneration (1)
MarshallingAttributeInfo.cs (1)
101
public static readonly SizeAndParamIndexInfo Unspecified =
new
(UnspecifiedConstSize, UnspecifiedParam);
16 references to SizeAndParamIndexInfo
Microsoft.Interop.SourceGeneration (16)
MarshalAsParser.cs (6)
85
if (ArraySubType != (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize)
94
if (CountInfo is
SizeAndParamIndexInfo
sizeParamIndex)
96
if (sizeParamIndex.ConstSize !=
SizeAndParamIndexInfo
.UnspecifiedConstSize)
136
SizeAndParamIndexInfo
arraySizeInfo =
SizeAndParamIndexInfo
.Unspecified;
166
UnmanagedType elementUnmanagedType = (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize;
MarshalAsWithCustomMarshallersParser.cs (1)
60
if (arrayInfo.ArraySubType != (UnmanagedType)
SizeAndParamIndexInfo
.UnspecifiedConstSize)
Marshalling\AttributedMarshallingModelGeneratorResolver.cs (3)
70
SizeAndParamIndexInfo
(_,
SizeAndParamIndexInfo
.UnspecifiedParam) => null,
72
SizeAndParamIndexInfo
(_, TypePositionInfo param) => ValidateNumElementsExpression(param, out countInfoRequiresCast),
Marshalling\ElementsMarshalling.cs (5)
66
SizeAndParamIndexInfo
(int size,
SizeAndParamIndexInfo
.UnspecifiedParam) => GetConstSizeExpression(size),
68
SizeAndParamIndexInfo
(
SizeAndParamIndexInfo
.UnspecifiedConstSize, TypePositionInfo param) => GetExpressionForParam(param),
69
SizeAndParamIndexInfo
(int size, TypePositionInfo param) => CheckedExpression(SyntaxKind.CheckedExpression,
MarshallingAttributeInfo.cs (1)
101
public static readonly
SizeAndParamIndexInfo
Unspecified = new(UnspecifiedConstSize, UnspecifiedParam);