39 references to Create
Microsoft.Interop.ComInterfaceGenerator (24)
ComClassInfo.cs (3)
30
return DiagnosticOr<ComClassInfo>.From(DiagnosticInfo.
Create
(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation()));
36
DiagnosticInfo.
Create
(
58
return DiagnosticOr<ComClassInfo>.From(DiagnosticInfo.
Create
(GeneratorDiagnostics.ClassDoesNotImplementAnyGeneratedComInterface,
ComInterfaceContext.cs (1)
71
DiagnosticInfo.
Create
(
ComInterfaceGenerator.cs (1)
331
generatorDiagnostics.ReportDiagnostic(DiagnosticInfo.
Create
(GeneratorDiagnostics.ComMethodManagedReturnWillBeOutVariable, symbol.Locations[0]));
ComInterfaceInfo.cs (15)
58
return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.
Create
(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation()));
64
DiagnosticInfo.
Create
(
75
return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.
Create
(
127
nonFatalDiagnostics.Add(DiagnosticInfo.
Create
(
184
diagnostic = DiagnosticInfo.
Create
(
209
stringMarshallingDiagnostic = DiagnosticInfo.
Create
(
218
stringMarshallingDiagnostic = DiagnosticInfo.
Create
(
228
stringMarshallingDiagnostic = DiagnosticInfo.
Create
(
243
stringMarshallingDiagnostic = DiagnosticInfo.
Create
(
265
optionsDiagnostic = DiagnosticInfo.
Create
(
279
optionsDiagnostic = DiagnosticInfo.
Create
(
300
exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.
Create
(
310
exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.
Create
(
340
diagnostic = DiagnosticInfo.
Create
(
382
diagnostic = DiagnosticInfo.
Create
(
ComMethodInfo.cs (4)
74
return DiagnosticInfo.
Create
(GeneratorDiagnostics.InvalidAttributedMethodSignature, comMethodDeclaringSyntax.Identifier.GetLocation(), method.Name);
80
return DiagnosticInfo.
Create
(GeneratorDiagnostics.ReturnConfigurationNotSupported, comMethodDeclaringSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
119
return DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(DiagnosticInfo.
Create
(GeneratorDiagnostics.MethodNotDeclaredInAttributedInterface, method.Locations.FirstOrDefault(), method.ToDisplayString()));
135
return DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(DiagnosticInfo.
Create
(GeneratorDiagnostics.CannotAnalyzeMethodPattern, method.Locations.FirstOrDefault(), method.ToDisplayString()));
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSExportGenerator.cs (1)
72
return ImmutableArray.Create(DiagnosticInfo.
Create
(GeneratorDiagnostics.JSExportRequiresAllowUnsafeBlocks, null));
JSImportGenerator.cs (1)
73
return ImmutableArray.Create(DiagnosticInfo.
Create
(GeneratorDiagnostics.JSImportRequiresAllowUnsafeBlocks, null));
Microsoft.Interop.LibraryImportGenerator (5)
GeneratorDiagnostics.cs (1)
295
DiagnosticInfo.
Create
(
LibraryImportGenerator.cs (4)
83
return ImmutableArray.Create(DiagnosticInfo.
Create
(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null));
550
return DiagnosticInfo.
Create
(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
556
return DiagnosticInfo.
Create
(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier);
562
return DiagnosticInfo.
Create
(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
Microsoft.Interop.LibraryImportGenerator.Downlevel (4)
DownlevelLibraryImportGenerator.cs (3)
420
return DiagnosticInfo.
Create
(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
426
return DiagnosticInfo.
Create
(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier);
432
return DiagnosticInfo.
Create
(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
GeneratorDiagnostics.cs (1)
295
DiagnosticInfo.
Create
(
Microsoft.Interop.SourceGeneration (4)
DiagnosticExtensions.cs (1)
201
return DiagnosticInfo.
Create
(
Marshalling\GeneratorDiagnostic.cs (1)
70
return DiagnosticInfo.
Create
(
Marshalling\MarshallerHelpers.cs (2)
364
DiagnosticInfo.
Create
(
374
DiagnosticInfo.
Create
(