~ruther/NosSmooth

ref: 98d14d78dffaad483832cedde3149bd97f6a646b NosSmooth/Core/NosSmooth.PacketSerializersGenerator/ParameterInfo.cs -rw-r--r-- 1.1 KiB
98d14d78 — František Boháček fix: use nullable inside of type converter repository 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
//  ParameterInfo.cs
//
//  Copyright (c) František Boháček. All rights reserved.
//  Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;

namespace NosSmooth.PacketSerializersGenerator;

/// <summary>
/// Information about a parameter of a packet constructor.
/// </summary>
/// <param name="Compilation"></param>
/// <param name="Parameter"></param>
/// <param name="Attribute"></param>
/// <param name="IndexedAttributeArguments"></param>
/// <param name="NamedAttributeArguments"></param>
/// <param name="Name"></param>
/// <param name="ConstructorIndex"></param>
/// <param name="PacketIndex"></param>
public record ParameterInfo
(
    Compilation Compilation,
    ParameterSyntax Parameter,
    AttributeSyntax Attribute,
    IReadOnlyList<object?> IndexedAttributeArguments,
    IReadOnlyDictionary<string, object?> NamedAttributeArguments,
    string Name,
    int ConstructorIndex,
    int PacketIndex
)
{
    /// <summary>
    /// Gets or sets if this parameter is the last one.
    /// </summary>
    public bool IsLast { get; set; }
}
Do not follow this link