Modifiers

This commit is contained in:
Stef Heyenrath
2021-07-26 15:29:55 +00:00
parent 5d48b67ba3
commit cbdf3ce895
2 changed files with 12 additions and 4 deletions
@@ -71,6 +71,7 @@ namespace ProxyInterfaceSourceGenerator.FileGenerators
protected INamedTypeSymbol GetType(string name)
{
// The GetTypeByMetadataName method returns null if no type matches the full name or if 2 or more types (in different assemblies) match the full name.
var symbol = _context.GeneratorExecutionContext.Compilation.GetTypeByMetadataName(name);
if (symbol is null)
{