summaryrefslogtreecommitdiffstats
path: root/generator/plugins/dotnet/custom/LSPRequest.cs
blob: 69e3f0dd15b290f6d748c786fce01bcae0c83451 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

[AttributeUsage(AttributeTargets.Class)]
public class LSPRequestAttribute : Attribute
{
    public LSPRequestAttribute(string method, Type response)
    {
        Method = method;
        Response = response;
    }

    public LSPRequestAttribute(string method, Type response, Type partialResponse)
    {
        Method = method;
        Response = response;
        PartialResponse = partialResponse;
    }

    public string Method { get; }
    public Type Response { get; }
    public Type? PartialResponse { get; }
}