19 references to From
Microsoft.Interop.ComInterfaceGenerator (19)
Analyzers\ComInterfaceGeneratorDiagnosticsAnalyzer.cs (1)
254
return DiagnosticOr<(ComInterfaceInfo, INamedTypeSymbol)>.
From
(
ComInterfaceContext.cs (1)
70
var diagnostic = DiagnosticOr<ComInterfaceContext>.
From
(
ComInterfaceInfo.cs (9)
59
return DiagnosticOrInterfaceInfo.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation()));
64
return DiagnosticOrInterfaceInfo.
From
(
72
return DiagnosticOrInterfaceInfo.
From
(partialContextDiagnostic);
76
return DiagnosticOrInterfaceInfo.
From
(DiagnosticInfo.Create(
84
return DiagnosticOrInterfaceInfo.
From
(guidDiagnostic);
87
return DiagnosticOrInterfaceInfo.
From
(baseDiagnostic);
93
return DiagnosticOrInterfaceInfo.
From
(stringMarshallingDiagnostic);
96
return DiagnosticOrInterfaceInfo.
From
(optionsDiagnostic);
99
return DiagnosticOrInterfaceInfo.
From
(exceptionToUnmanagedMarshallerDiagnostic);
ComMethodInfo.cs (8)
77
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstanceEventDeclaredInInterface, member.Name, data.ifaceSymbol.ToDisplayString())));
187
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.MethodNotDeclaredInAttributedInterface, method.Locations.FirstOrDefault(), method.ToDisplayString())));
204
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.CannotAnalyzeMethodPattern, method.Locations.FirstOrDefault(), method.ToDisplayString())));
211
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(diag!));
275
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(
295
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(
303
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(shapeDiagnostic!));
631
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(