jiowchern/Regulus

View on GitHub
Regulus.Remote.Tools.Protocol.Sources/Codes/RegulusRemoteIGhostGetID.cs

Summary

Maintainability
A
1 hr
Test Coverage
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using static Microsoft.CodeAnalysis.CSharp.SyntaxFactory;
namespace Regulus.Remote.Tools.Protocol.Sources.Codes
{
    public static partial class RegulusRemoteIGhost
    {
        public static readonly MemberDeclarationSyntax GetID = MethodDeclaration(
                           PredefinedType(
                               Token(SyntaxKind.LongKeyword)

                           ),
                        Identifier("GetID")
                    )
                    .WithExplicitInterfaceSpecifier(
                        ExplicitInterfaceSpecifier(
                            _RegulusRemoteIGhost
                        )
                    )
                    .WithBody(
                        Block(
                            SingletonList(
                                (StatementSyntax)ReturnStatement(
                                    IdentifierName("_GhostId")
                                )
                            )
                        )
                    );
    }
}