mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	
		
			
	
	
		
			20 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			C#
		
	
	
	
	
	
		
		
			
		
	
	
			20 lines
		
	
	
	
		
			620 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| 
								 | 
							
								using Microsoft.CodeAnalysis;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Godot.SourceGenerators
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    // Placeholder. Once we switch to native extensions this will act as the registrar for all
							 | 
						||
| 
								 | 
							
								    // user Godot classes in the assembly. Think of it as something similar to `register_types`.
							 | 
						||
| 
								 | 
							
								    public class ScriptRegistrarGenerator : ISourceGenerator
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        public void Initialize(GeneratorInitializationContext context)
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            throw new System.NotImplementedException();
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								        public void Execute(GeneratorExecutionContext context)
							 | 
						||
| 
								 | 
							
								        {
							 | 
						||
| 
								 | 
							
								            throw new System.NotImplementedException();
							 | 
						||
| 
								 | 
							
								        }
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |