44 references to Create
Microsoft.Interop.ComInterfaceGenerator (26)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
251DiagnosticInfo.Create(GeneratorDiagnostics.CannotAnalyzeInterfacePattern, sym.Locations.FirstOrDefault() ?? Location.None, sym.Name));
Analyzers\VtableIndexStubDiagnosticsAnalyzer.cs (4)
116return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 124return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier); 131return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString()); 137return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttribute, methodSyntax.Identifier.GetLocation(), method.Name);
ComInterfaceContext.cs (1)
71DiagnosticInfo.Create(
ComInterfaceGenerator.cs (1)
322generatorDiagnostics.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 (4)
Analyzers\JSImportExportDiagnosticsAnalyzer.cs (4)
105endContext.ReportDiagnostic(DiagnosticInfo.Create(RequiresAllowUnsafeBlocksDescriptor, null).ToDiagnostic()); 166return DiagnosticInfo.Create(invalidSignatureDescriptor, methodSyntax.Identifier.GetLocation(), method.Name); 172return DiagnosticInfo.Create(containingTypeMissingModifiersDescriptor, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 178return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
Microsoft.Interop.LibraryImportGenerator (5)
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (4)
83endContext.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null).ToDiagnostic()); 282return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 288return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 294return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
GeneratorDiagnostics.cs (1)
295DiagnosticInfo.Create(
Microsoft.Interop.LibraryImportGenerator.Downlevel (5)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (4)
77endContext.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null).ToDiagnostic()); 286return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 292return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 298return 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(