20 references to From
Microsoft.Interop.ComInterfaceGenerator (18)
ComClassInfo.cs (3)
30return DiagnosticOr<ComClassInfo>.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation())); 35return DiagnosticOr<ComClassInfo>.From( 58return DiagnosticOr<ComClassInfo>.From(DiagnosticInfo.Create(GeneratorDiagnostics.ClassDoesNotImplementAnyGeneratedComInterface,
ComInterfaceContext.cs (1)
70var diagnostic = DiagnosticOr<ComInterfaceContext>.From(
ComInterfaceInfo.cs (9)
58return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation())); 63return DiagnosticOrInterfaceInfo.From( 71return DiagnosticOrInterfaceInfo.From(partialContextDiagnostic); 75return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create( 83return DiagnosticOrInterfaceInfo.From(guidDiagnostic); 86return DiagnosticOrInterfaceInfo.From(baseDiagnostic); 92return DiagnosticOrInterfaceInfo.From(stringMarshallingDiagnostic); 95return DiagnosticOrInterfaceInfo.From(optionsDiagnostic); 98return DiagnosticOrInterfaceInfo.From(exceptionToUnmanagedMarshallerDiagnostic);
ComMethodInfo.cs (5)
53methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstancePropertyDeclaredInInterface, member.Name, data.ifaceSymbol.ToDisplayString()))); 56methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstanceEventDeclaredInInterface, member.Name, data.ifaceSymbol.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())); 141return DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(diag);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
58? DiagnosticOr<(MethodDeclarationSyntax Syntax, IMethodSymbol Symbol)>.From(diagnostic)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
57? DiagnosticOr<(MethodDeclarationSyntax Syntax, IMethodSymbol Symbol)>.From(diagnostic)