mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-04 01:26:26 +02: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);
|
|
}
|
|
}
|
|
}
|
|
}
|