mirror of
https://github.com/SK-la/osu-framework.git
synced 2026-03-15 03:20:30 +00:00
19 lines
771 B
C#
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);
|
|
}
|
|
}
|