1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 23:58:48 +00:00
X10D/tools/SourceGenerator/MethodOverloadGenerator.cs

23 lines
668 B
C#
Raw Normal View History

2023-08-26 17:11:29 +00:00
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SourceGenerator;
[Generator]
internal sealed class MethodOverloadGenerator : ISourceGenerator
{
/// <inheritdoc />
public void Initialize(GeneratorInitializationContext context)
{
context.RegisterForSyntaxNotifications(() => new OverloadSyntaxReceiver());
}
/// <inheritdoc />
public void Execute(GeneratorExecutionContext context)
{
var syntaxReceiver = (OverloadSyntaxReceiver)context.SyntaxReceiver!;
IReadOnlyList<MethodDeclarationSyntax> candidateMethods = syntaxReceiver.CandidateMethods;
// TODO implement
}
}