-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSelectExprMappingInfo.cs
More file actions
35 lines (29 loc) · 1.01 KB
/
SelectExprMappingInfo.cs
File metadata and controls
35 lines (29 loc) · 1.01 KB
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
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Linqraft.Core;
/// <summary>
/// Information about a method marked with [LinqraftMappingGenerate] attribute
/// </summary>
public record SelectExprMappingInfo
{
/// <summary>
/// The method declaration with the attribute
/// </summary>
public required MethodDeclarationSyntax MethodDeclaration { get; init; }
/// <summary>
/// The name of the method to generate (from attribute parameter)
/// </summary>
public required string TargetMethodName { get; init; }
/// <summary>
/// The containing class (must be static partial)
/// </summary>
public required INamedTypeSymbol ContainingClass { get; init; }
/// <summary>
/// The semantic model for this method
/// </summary>
public required SemanticModel SemanticModel { get; init; }
/// <summary>
/// The namespace where the class is defined
/// </summary>
public required string ContainingNamespace { get; init; }
}