48 references to Create
Microsoft.Interop.ComInterfaceGenerator (28)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
255DiagnosticInfo.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)
250generatorDiagnostics.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.ComMethodManagedReturnWillBeOutVariable, symbol.Locations[0]));
ComInterfaceInfo.cs (15)
65return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation())); 71DiagnosticInfo.Create( 82return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create( 137nonFatalDiagnostics.Add(DiagnosticInfo.Create( 201diagnostic = DiagnosticInfo.Create( 226stringMarshallingDiagnostic = DiagnosticInfo.Create( 235stringMarshallingDiagnostic = DiagnosticInfo.Create( 245stringMarshallingDiagnostic = DiagnosticInfo.Create( 260stringMarshallingDiagnostic = DiagnosticInfo.Create( 282optionsDiagnostic = DiagnosticInfo.Create( 296optionsDiagnostic = DiagnosticInfo.Create( 317exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.Create( 327exceptionToUnmanagedMarshallerDiagnostic = DiagnosticInfo.Create( 357diagnostic = DiagnosticInfo.Create( 399diagnostic = DiagnosticInfo.Create(
ComMethodInfo.cs (6)
124diagnostic = DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, comMethodDeclaringSyntax.Identifier.GetLocation(), method.Name); 131diagnostic = DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, comMethodDeclaringSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString()); 187methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(DiagnosticInfo.Create(GeneratorDiagnostics.MethodNotDeclaredInAttributedInterface, method.Locations.FirstOrDefault(), method.ToDisplayString()))); 204methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(DiagnosticInfo.Create(GeneratorDiagnostics.CannotAnalyzeMethodPattern, method.Locations.FirstOrDefault(), method.ToDisplayString()))); 276DiagnosticInfo.Create(GeneratorDiagnostics.MethodNotDeclaredInAttributedInterface, property.Locations.FirstOrDefault(), property.ToDisplayString()))); 296DiagnosticInfo.Create(GeneratorDiagnostics.CannotAnalyzeMethodPattern, property.Locations.FirstOrDefault(), property.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 (6)
Analyzers\LibraryImportDiagnosticsAnalyzer.cs (5)
84endContext.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null).ToDiagnostic()); 225DiagnosticInfo.Create( 366return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 372return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 378return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
GeneratorDiagnostics.cs (1)
307DiagnosticInfo.Create(
Microsoft.Interop.LibraryImportGenerator.Downlevel (6)
DownlevelLibraryImportDiagnosticsAnalyzer.cs (5)
78endContext.ReportDiagnostic(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, null).ToDiagnostic()); 224DiagnosticInfo.Create( 367return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name); 373return DiagnosticInfo.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, nonPartialIdentifier); 379return DiagnosticInfo.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
GeneratorDiagnostics.cs (1)
307DiagnosticInfo.Create(
Microsoft.Interop.SourceGeneration (4)
DiagnosticExtensions.cs (1)
201return DiagnosticInfo.Create(
Marshalling\GeneratorDiagnostic.cs (1)
70return DiagnosticInfo.Create(
Marshalling\MarshallerHelpers.cs (2)
371DiagnosticInfo.Create( 381DiagnosticInfo.Create(