Skip to content

Commit

Permalink
Fix generator name
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse committed Feb 16, 2024
1 parent c0ced19 commit 303e17d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sourcegeneration/MonologueSourceGenerator/LogGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,10 @@ public class LogGenerator : IIncrementalGenerator
}
}

return new ClassData(loggableMembers.ToImmutable(), classSymbol.Name, typeBuilder.ToString(), ns);
var fmt = new SymbolDisplayFormat(genericsOptions: SymbolDisplayGenericsOptions.None);
var fileName = $"{classSymbol.ContainingNamespace}{classSymbol.ToDisplayString(fmt)}{classSymbol.MetadataName}";

return new ClassData(loggableMembers.ToImmutable(), $"{classSymbol.ContainingNamespace}{classSymbol.ToDisplayString(fmt)}{classSymbol.MetadataName}", typeBuilder.ToString(), ns);
}

private static LogData ComputeOperation(ITypeSymbol logType, string getOp, string path)
Expand Down

0 comments on commit 303e17d

Please sign in to comment.