20 references to From
Microsoft.Interop.ComInterfaceGenerator (18)
ComClassInfo.cs (3)
30
return DiagnosticOr<ComClassInfo>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation()));
35
return DiagnosticOr<ComClassInfo>.
From
(
58
return DiagnosticOr<ComClassInfo>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.ClassDoesNotImplementAnyGeneratedComInterface,
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 (5)
53
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstancePropertyDeclaredInInterface, member.Name, data.ifaceSymbol.ToDisplayString())));
56
methods.Add(DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(member.CreateDiagnosticInfo(GeneratorDiagnostics.InstanceEventDeclaredInInterface, member.Name, data.ifaceSymbol.ToDisplayString())));
119
return DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.MethodNotDeclaredInAttributedInterface, method.Locations.FirstOrDefault(), method.ToDisplayString()));
135
return DiagnosticOr<(ComMethodInfo, IMethodSymbol)>.
From
(DiagnosticInfo.Create(GeneratorDiagnostics.CannotAnalyzeMethodPattern, method.Locations.FirstOrDefault(), method.ToDisplayString()));
141
return 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)