Files
osu-framework/osu.Framework.SourceGeneration/Generators/LongRunningLoad/LongRunningLoadSourceGenerator.cs
2023-07-07 20:29:13 +09:00

19 lines
771 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace osu.Framework.SourceGeneration.Generators.LongRunningLoad
{
[Generator]
public class LongRunningLoadSourceGenerator : AbstractIncrementalGenerator
{
protected override IncrementalSemanticTarget CreateSemanticTarget(ClassDeclarationSyntax node, SemanticModel semanticModel)
=> new LongRunningLoadSemanticTarget(node, semanticModel);
protected override IncrementalSourceEmitter CreateSourceEmitter(IncrementalSemanticTarget target)
=> new LongRunningLoadSourceEmitter(target);
}
}