mirror of
https://git.ryujinx.app/kenji-nx/ryujinx.git
synced 2025-12-16 04:37:02 +00:00
24 lines
622 B
C#
24 lines
622 B
C#
using Microsoft.CodeAnalysis;
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Ryujinx.HLE.Generators
|
|
{
|
|
internal class ServiceSyntaxReceiver : ISyntaxReceiver
|
|
{
|
|
public HashSet<ClassDeclarationSyntax> Types = [];
|
|
|
|
public void OnVisitSyntaxNode(SyntaxNode syntaxNode)
|
|
{
|
|
if (syntaxNode is ClassDeclarationSyntax classDeclaration)
|
|
{
|
|
if (classDeclaration.BaseList == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
Types.Add(classDeclaration);
|
|
}
|
|
}
|
|
}
|
|
}
|