41 references to GeneratorDiagnostics
Microsoft.Interop.LibraryImportGenerator (41)
Analyzers\AddDisableRuntimeMarshallingAttributeFixer.cs (1)
25public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(GeneratorDiagnostics.Ids.TypeNotSupported);
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (25)
26GeneratorDiagnostics.InvalidAttributedMethodSignature, 27GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, 28GeneratorDiagnostics.InvalidStringMarshallingConfiguration, 29GeneratorDiagnostics.ParameterTypeNotSupported, 30GeneratorDiagnostics.ReturnTypeNotSupported, 31GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails, 32GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails, 33GeneratorDiagnostics.ParameterConfigurationNotSupported, 34GeneratorDiagnostics.ReturnConfigurationNotSupported, 35GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported, 36GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported, 37GeneratorDiagnostics.ConfigurationNotSupported, 38GeneratorDiagnostics.ConfigurationValueNotSupported, 39GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported, 40GeneratorDiagnostics.CannotForwardToDllImport, 41GeneratorDiagnostics.RequiresAllowUnsafeBlocks, 42GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo, 43GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo, 44GeneratorDiagnostics.SizeOfInCollectionMustBeDefinedAtCallOutParam, 45GeneratorDiagnostics.SizeOfInCollectionMustBeDefinedAtCallReturnValue, 46GeneratorDiagnostics.LibraryImportUsageDoesNotFollowBestPractices); 83endContext.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null).ToDiagnostic()); 282return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 288return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 294return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
DiagnosticDescriptorProvider.cs (12)
11public DiagnosticDescriptor InvalidMarshallingAttributeInfo => GeneratorDiagnostics.MarshallingAttributeConfigurationNotSupported; 13public DiagnosticDescriptor ConfigurationNotSupported => GeneratorDiagnostics.ConfigurationNotSupported; 15public DiagnosticDescriptor ConfigurationValueNotSupported => GeneratorDiagnostics.ConfigurationValueNotSupported; 21GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: true, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsReturnConfigurationNotSupported, 22GeneratorDiagnostic.NotSupported { NotSupportedDetails: null, TypePositionInfo: { IsManagedReturnPosition: false, MarshallingAttributeInfo: MarshalAsInfo } } => GeneratorDiagnostics.MarshalAsParameterConfigurationNotSupported, 23GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupportedWithDetails, 24GeneratorDiagnostic.NotSupported { NotSupportedDetails: not null, TypePositionInfo.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupportedWithDetails, 25GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.IsManagedReturnPosition: false } => GeneratorDiagnostics.UnnecessaryParameterMarshallingInfo, 26GeneratorDiagnostic.UnnecessaryData { TypePositionInfo.IsManagedReturnPosition: true } => GeneratorDiagnostics.UnnecessaryReturnMarshallingInfo, 27GeneratorDiagnostic.NotRecommended => GeneratorDiagnostics.LibraryImportUsageDoesNotFollowBestPractices, 29{ TypePositionInfo.IsManagedReturnPosition: true } => GeneratorDiagnostics.ReturnTypeNotSupported, 30{ TypePositionInfo.IsManagedReturnPosition: false } => GeneratorDiagnostics.ParameterTypeNotSupported,
GeneratorDiagnostics.cs (3)
133GeneratorDiagnostics.Ids.ConfigurationNotSupported, 144GeneratorDiagnostics.Ids.ConfigurationNotSupported, 281GeneratorDiagnostics.InvalidStringMarshallingConfiguration,