19 references to From
Microsoft.Interop.ComInterfaceGenerator (19)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
254return DiagnosticOr<(ComInterfaceInfo, INamedTypeSymbol)>.From(
ComInterfaceContext.cs (1)
70var diagnostic = DiagnosticOr<ComInterfaceContext>.From(
ComInterfaceInfo.cs (9)
67return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation())); 72return DiagnosticOrInterfaceInfo.From( 80return DiagnosticOrInterfaceInfo.From(partialContextDiagnostic); 84return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create( 92return DiagnosticOrInterfaceInfo.From(guidDiagnostic); 95return DiagnosticOrInterfaceInfo.From(baseDiagnostic); 101return DiagnosticOrInterfaceInfo.From(stringMarshallingDiagnostic); 104return DiagnosticOrInterfaceInfo.From(optionsDiagnostic); 107return DiagnosticOrInterfaceInfo.From(exceptionToUnmanagedMarshallerDiagnostic);
ComMethodInfo.cs (8)
77methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstanceEventDeclaredInInterface, member.Name, data.ifaceSymbol.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()))); 211methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(diag!)); 275methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From( 295methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From( 303methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(shapeDiagnostic!)); 631methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.From(