mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-03-15 02:06:37 +00:00

* add hle service generator remove usage of reflection in device state * remove rd.xml generation * make applet manager reflection free * fix typos * fix encoding * fix style report * remove rogue generator reference * remove double assignment
25 lines
657 B
C#
25 lines
657 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 = new HashSet<ClassDeclarationSyntax>();
|
|
|
|
public void OnVisitSyntaxNode(SyntaxNode syntaxNode)
|
|
{
|
|
if (syntaxNode is ClassDeclarationSyntax classDeclaration)
|
|
{
|
|
if (classDeclaration.BaseList == null)
|
|
{
|
|
return;
|
|
}
|
|
|
|
Types.Add(classDeclaration);
|
|
}
|
|
}
|
|
}
|
|
}
|