1 write to TypePositionInfo
Microsoft.Interop.SourceGeneration (1)
Marshalling\GeneratorDiagnostic.cs (1)
15
TypePositionInfo
= typePositionInfo;
30 references to TypePositionInfo
Microsoft.Interop.ComInterfaceGenerator (8)
DiagnosticDescriptorProvider.cs (8)
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
25
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
26
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
27
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
28
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
31
{
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
32
{
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.JavaScript.JSImportGenerator (4)
DescriptorProvider.cs (4)
20
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
23
{
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
24
{
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.LibraryImportGenerator (8)
DiagnosticDescriptorProvider.cs (8)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
25
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
26
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
29
{
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
30
{
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.LibraryImportGenerator.Downlevel (8)
DiagnosticDescriptorProvider.cs (8)
21
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported,
22
GeneratorDiagnostic.NotSupported { NotSupportedDetails: null,
TypePositionInfo
: { IsManagedReturnPosition: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported,
23
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails,
24
GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null,
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails,
25
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo,
26
GeneratorDiagnostic.UnnecessaryData {
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo,
29
{
TypePositionInfo
.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupported,
30
{
TypePositionInfo
.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
Microsoft.Interop.SourceGeneration (2)
Marshalling\GeneratorDiagnostic.cs (1)
41
return DiagnosticInfo.Create(descriptor, location, DiagnosticProperties,
TypePositionInfo
.ManagedType.DiagnosticFormattedName, elementName);
MethodSignatureDiagnosticLocations.cs (1)
63
var (location, elementName) = diagnostic.
TypePositionInfo
switch