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)
343generatorDiagnostics.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.ComMethodManagedReturnWillBeOutVariable, symbol.Locations[0]));
ComInterfaceInfo.cs (15)
59return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation())); 65DiagnosticInfo.Create( 76return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create( 128nonFatalDiagnostics.Add(DiagnosticInfo.Create( 192diagnostic = DiagnosticInfo.Create( 217stringMarshallingDiagnostic = DiagnosticInfo.Create( 226stringMarshallingDiagnostic = DiagnosticInfo.Create( 236stringMarshallingDiagnostic = DiagnosticInfo.Create( 251stringMarshallingDiagnostic = DiagnosticInfo.Create( 273optionsDiagnostic = DiagnosticInfo.Create( 287optionsDiagnostic = DiagnosticInfo.Create( 308exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.Create( 318exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.Create( 348diagnostic = DiagnosticInfo.Create( 390diagnostic = 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(