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));
344
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidExportAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
352
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidExportAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier);
359
return Diagnostic.Create(
GeneratorDiagnostics
.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
JSImportGenerator.cs (4)
70
return ImmutableArray.Create(DiagnosticInfo.Create(
GeneratorDiagnostics
.JSImportRequiresAllowUnsafeBlocks, null));
223
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidImportAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
231
return Diagnostic.Create(
GeneratorDiagnostics
.InvalidImportAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier);
238
return Diagnostic.Create(
GeneratorDiagnostics
.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());