mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-14 04:55:42 +00:00
23 lines
671 B
C#
23 lines
671 B
C#
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
|
|
}
|
|
}
|