~ruther/NosSmooth

ref: 80afab8374316c368deb24c74c9db2fc8ec2d4a2 NosSmooth/Core/NosSmooth.PacketSerializersGenerator/Data/PacketInfo.cs -rw-r--r-- 1.1 KiB
80afab83 — František Boháček fix: remove TUnderlyingType constraint in enum string converter 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
//
//  PacketInfo.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>
/// Contains information about a packet record syntax.
/// </summary>
/// <param name="Compilation">The compilation of the generator.</param>
/// <param name="GenerateAttribute">The generate serializer attribute.</param>
/// <param name="PacketRecord">The packet record declaration.</param>
/// <param name="SemanticModel">The semantic model the packet is in.</param>
/// <param name="Parameters">The parsed parameters of the packet.</param>
/// <param name="Namespace">The namespace of the packet record.</param>
/// <param name="Name">The name of the packet.</param>
public record PacketInfo
(
    Compilation Compilation,
    AttributeInfo GenerateAttribute,
    RecordDeclarationSyntax PacketRecord,
    SemanticModel SemanticModel,
    Parameters Parameters,
    string Namespace,
    string Name
);