mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-11-25 03:25:13 +00:00
2c5c0392f9
* 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
24 lines
657 B
C#
24 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);
|
|
}
|
|
}
|
|
}
|
|
}
|