Skip to content

Commit 6cbd045

Browse files
committed
Improvements
1 parent 827f43c commit 6cbd045

6 files changed

Lines changed: 305 additions & 194 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
using System.Collections.Generic;
2+
using System.Text;
3+
using Microsoft.CodeAnalysis;
4+
using Microsoft.CodeAnalysis.CSharp.Syntax;
5+
6+
namespace WrapperValueObject.Generator
7+
{
8+
public partial class Generator
9+
{
10+
private readonly struct GenerationContext
11+
{
12+
public readonly GeneratorExecutionContext Context;
13+
public readonly StringBuilder SourceBuilder;
14+
public readonly TypeDeclarationSyntax Node;
15+
public readonly ISymbol Type;
16+
public readonly IEnumerable<(string Name, INamedTypeSymbol Type)> InnerTypes;
17+
18+
public GenerationContext(
19+
GeneratorExecutionContext context,
20+
StringBuilder sourceBuilder,
21+
TypeDeclarationSyntax node,
22+
ISymbol type,
23+
IEnumerable<(string Name, INamedTypeSymbol Type)> innerTypes
24+
)
25+
{
26+
Context = context;
27+
SourceBuilder = sourceBuilder;
28+
Node = node;
29+
Type = type;
30+
InnerTypes = innerTypes;
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)