File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
sources/SilkTouch/SilkTouch/Mods Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ ConversionOperatorDeclarationSyntax node
229
229
// Update the bake set. This adds if we haven't seen the member before, otherwise we just update the
230
230
// existing declaration by adding our attribute list.
231
231
parent . Children [ discrim ] = new BakedMember (
232
- strategy . GetTypeDeclaration (
232
+ strategy . BakeMember (
233
233
nodeToAdd ,
234
234
discrim ,
235
235
parent . Children . TryGetValue ( discrim , out var baked ) ? baked : null
@@ -273,7 +273,7 @@ decl is TypeDeclarationSyntax
273
273
nsPre = string . Empty ; // only the top-level type shall be prefixed with the namespace
274
274
bakeSet = (
275
275
bakeSet ! . Children [ discrim ] = new BakedMember (
276
- strategy . GetTypeDeclaration (
276
+ strategy . BakeMember (
277
277
decl ,
278
278
discrim ,
279
279
bakeSet . Children . TryGetValue ( discrim , out var baked ) ? baked : null
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public class DefaultBakeStrategy(ILogger<DefaultBakeStrategy> logger) : IBakeStr
25
25
GetType ( ) == typeof ( DefaultBakeStrategy ) ? "Default" : GetType ( ) . FullName ?? GetType ( ) . Name ;
26
26
27
27
/// <inheritdoc />
28
- public virtual MemberDeclarationSyntax GetTypeDeclaration (
28
+ public virtual MemberDeclarationSyntax BakeMember (
29
29
MemberDeclarationSyntax node ,
30
30
string ? discrim ,
31
31
BakedMember ? existing
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ public interface IBakeStrategy // the temptation to call this IRecipe was sooooo
17
17
string Name { get ; }
18
18
19
19
/// <summary>
20
- /// Gets a type declaration to store in a <see cref="BakeSet" /> element, merging the encountered declaration with
21
- /// the existing one in that <see cref="BakeSet" /> element if provided.
20
+ /// Gets a declaration to store in a <see cref="BakeSet" /> element, merging the encountered declaration with the
21
+ /// existing one in that <see cref="BakeSet" /> element if provided.
22
22
/// </summary>
23
23
/// <param name="node">The encountered syntax node.</param>
24
24
/// <param name="discrim">The discriminator for this member.</param>
25
25
/// <param name="existing">The current member stored in the <see cref="BakeSet" />.</param>
26
26
/// <returns>The merged type declaration.</returns>
27
- MemberDeclarationSyntax GetTypeDeclaration (
27
+ MemberDeclarationSyntax BakeMember (
28
28
MemberDeclarationSyntax node ,
29
29
string ? discrim ,
30
30
BakedMember ? existing
You can’t perform that action at this time.
0 commit comments