mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-08-30 07:25:05 +00:00
Some checks are pending
Canary release job / Create tag (push) Waiting to run
Canary release job / Release for linux-arm64 (push) Waiting to run
Canary release job / Release for linux-x64 (push) Waiting to run
Canary release job / Release for win-x64 (push) Waiting to run
Canary release job / Release MacOS universal (push) Waiting to run
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);
|
|
}
|
|
}
|
|
}
|
|
}
|