~ruther/NosSmooth

ref: 4e64d6b7bff7bb5d8d132e1ddbc3dc7f8002a79b NosSmooth/Core/NosSmooth.PacketSerializersGenerator/Data/ParameterInfo.cs -rw-r--r-- 1.0 KiB
4e64d6b7 — František Boháček fix: iterate for to last parameter 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
//
//  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.Data;

/// <summary>
/// Information about a parameter of a packet constructor.
/// </summary>
/// <param name="Parameter">The parameter's syntax.</param>
/// <param name="Type">The type of the parameter.</param>
/// <param name="Nullable">Whether the parameter type is nullable.</param>
/// <param name="Attributes">The list of all of the attribute on the parameter that are used for the generation of serializers.</param>
/// <param name="Name"></param>
/// <param name="ConstructorIndex"></param>
/// <param name="PacketIndex"></param>
public record ParameterInfo
(
    ParameterSyntax Parameter,
    ITypeSymbol Type,
    bool Nullable,
    IReadOnlyList<AttributeInfo> Attributes,
    string Name,
    int ConstructorIndex,
    int PacketIndex
);
Do not follow this link