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