@@ -13,55 +13,23 @@ namespace CodeGeneration.Roslyn
1313 public struct RichGenerationResult
1414 {
1515 /// <summary>
16- /// Creates <see cref="RichGenerationResult "/> with provided arguments as property values .
16+ /// Gets or sets the <see cref="MemberDeclarationSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/> .
1717 /// </summary>
18- /// <param name="members">Assigned to <see cref="Members"/>.</param>
19- /// <param name="usings">Assigned to <see cref="Usings"/>.</param>
20- /// <param name="attributeLists">Assigned to <see cref="AttributeLists"/>.</param>
21- /// <param name="externs">Assigned to <see cref="Externs"/>.</param>
22- [ DebuggerStepThrough ]
23- public RichGenerationResult (
24- SyntaxList < MemberDeclarationSyntax > members ,
25- SyntaxList < UsingDirectiveSyntax > usings = default ,
26- SyntaxList < AttributeListSyntax > attributeLists = default ,
27- SyntaxList < ExternAliasDirectiveSyntax > externs = default )
28- {
29- Members = members ;
30- Usings = usings ;
31- AttributeLists = attributeLists ;
32- Externs = externs ;
33- }
18+ public SyntaxList < MemberDeclarationSyntax > Members { get ; set ; }
3419
3520 /// <summary>
36- /// Gets <see cref="MemberDeclarationSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
21+ /// Gets or sets the <see cref="UsingDirectiveSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
3722 /// </summary>
38- public SyntaxList < MemberDeclarationSyntax > Members { get ; }
23+ public SyntaxList < UsingDirectiveSyntax > Usings { get ; set ; }
3924
4025 /// <summary>
41- /// Gets <see cref="UsingDirectiveSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
26+ /// Gets or sets the <see cref="ExternAliasDirectiveSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
4227 /// </summary>
43- public SyntaxList < UsingDirectiveSyntax > Usings { get ; }
28+ public SyntaxList < ExternAliasDirectiveSyntax > Externs { get ; set ; }
4429
4530 /// <summary>
46- /// Gets <see cref="ExternAliasDirectiveSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
31+ /// Gets or sets the <see cref="AttributeListSyntax "/> to add to generated <see cref="CompilationUnitSyntax"/>.
4732 /// </summary>
48- public SyntaxList < ExternAliasDirectiveSyntax > Externs { get ; }
49-
50- /// <summary>
51- /// Gets <see cref="AttributeListSyntax"/> to add to generated <see cref="CompilationUnitSyntax"/>.
52- /// </summary>
53- public SyntaxList < AttributeListSyntax > AttributeLists { get ; }
54-
55- [ DebuggerHidden , DebuggerStepThrough ]
56- public void Deconstruct ( out SyntaxList < MemberDeclarationSyntax > members ,
57- out SyntaxList < UsingDirectiveSyntax > usings ,
58- out SyntaxList < AttributeListSyntax > attributeLists ,
59- out SyntaxList < ExternAliasDirectiveSyntax > externs )
60- {
61- members = Members ;
62- usings = Usings ;
63- attributeLists = AttributeLists ;
64- externs = Externs ;
65- }
33+ public SyntaxList < AttributeListSyntax > AttributeLists { get ; set ; }
6634 }
6735}
0 commit comments