15 references to GeneratorDiagnostics
Microsoft.Interop.JavaScript.JSImportGenerator (15)
DescriptorProvider.cs (7)
10
public DiagnosticDescriptor InvalidMarshallingAttributeInfo =>
GeneratorDiagnostics
.MarshallingAttributeConfigurationNotSupported;
12
public DiagnosticDescriptor ConfigurationNotSupported =>
GeneratorDiagnostics
.ConfigurationNotSupported;
14
public DiagnosticDescriptor ConfigurationValueNotSupported =>
GeneratorDiagnostics
.ConfigurationValueNotSupported;
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,
JSExportGenerator.cs (4)
72
return ImmutableArray.Create(DiagnosticInfo.Create(
GeneratorDiagnostics
.JSExportRequiresAllowUnsafeBlocks, null));
462
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidExportAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
470
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidExportAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier);
477
return Diagnostic.Create(
GeneratorDiagnostics
.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
JSImportGenerator.cs (4)
73
return ImmutableArray.Create(DiagnosticInfo.Create(
GeneratorDiagnostics
.JSImportRequiresAllowUnsafeBlocks, null));
371
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidImportAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
379
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidImportAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier);
386
return Diagnostic.Create(
GeneratorDiagnostics
.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());