mirror of
https://github.com/AssetRipper/AssetRipper.git
synced 2025-12-11 20:15:29 +01:00
19 lines
438 B
C#
19 lines
438 B
C#
using Microsoft.CodeAnalysis;
|
|
using Microsoft.CodeAnalysis.CSharp;
|
|
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
|
|
namespace AssetRipper.SmartEnums;
|
|
|
|
internal static class RoslynExtensions
|
|
{
|
|
public static bool IsPartial(this MemberDeclarationSyntax c)
|
|
{
|
|
return c.Modifiers.Any(SyntaxKind.PartialKeyword);
|
|
}
|
|
|
|
public static bool IsReadOnly(this MemberDeclarationSyntax c)
|
|
{
|
|
return c.Modifiers.Any(SyntaxKind.ReadOnlyKeyword);
|
|
}
|
|
}
|