mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-30 23:51:34 +00:00 
			
		
		
		
	1
This commit is contained in:
		| @@ -19,7 +19,7 @@ namespace Esiur.Proxy; | ||||
|  | ||||
| [Generator] | ||||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("MicrosoftCodeAnalysisCorrectness", "RS1036:Specify analyzer banned API enforcement setting", Justification = "<Pending>")] | ||||
| public class ResourceGenerator : ISourceGenerator | ||||
| public class ResourceGenerator : IIncrementalGenerator | ||||
| { | ||||
|  | ||||
|     private KeyList<string, TypeTemplate[]> cache = new(); | ||||
| @@ -249,4 +249,9 @@ namespace {ci.ClassSymbol.ContainingNamespace.ToDisplayString()} {{ | ||||
|             context.AddSource("Error.g.cs", $"/*\r\n{ex}\r\n*/"); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public void Initialize(IncrementalGeneratorInitializationContext context) | ||||
|     { | ||||
|         context.RegisterForSyntaxNotifications(() => new ResourceGeneratorReceiver()); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user