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