Skip to content

Commit 5606e93

Browse files
committed
Rename GetTypeDeclaration to BakeMember
1 parent a7c35a0 commit 5606e93

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

sources/SilkTouch/SilkTouch/Mods/BakeSourceSets.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ ConversionOperatorDeclarationSyntax node
229229
// Update the bake set. This adds if we haven't seen the member before, otherwise we just update the
230230
// existing declaration by adding our attribute list.
231231
parent.Children[discrim] = new BakedMember(
232-
strategy.GetTypeDeclaration(
232+
strategy.BakeMember(
233233
nodeToAdd,
234234
discrim,
235235
parent.Children.TryGetValue(discrim, out var baked) ? baked : null
@@ -273,7 +273,7 @@ decl is TypeDeclarationSyntax
273273
nsPre = string.Empty; // only the top-level type shall be prefixed with the namespace
274274
bakeSet = (
275275
bakeSet!.Children[discrim] = new BakedMember(
276-
strategy.GetTypeDeclaration(
276+
strategy.BakeMember(
277277
decl,
278278
discrim,
279279
bakeSet.Children.TryGetValue(discrim, out var baked) ? baked : null

sources/SilkTouch/SilkTouch/Mods/Bakery/DefaultBakeStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class DefaultBakeStrategy(ILogger<DefaultBakeStrategy> logger) : IBakeStr
2525
GetType() == typeof(DefaultBakeStrategy) ? "Default" : GetType().FullName ?? GetType().Name;
2626

2727
/// <inheritdoc />
28-
public virtual MemberDeclarationSyntax GetTypeDeclaration(
28+
public virtual MemberDeclarationSyntax BakeMember(
2929
MemberDeclarationSyntax node,
3030
string? discrim,
3131
BakedMember? existing

sources/SilkTouch/SilkTouch/Mods/Bakery/IBakeStrategy.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public interface IBakeStrategy // the temptation to call this IRecipe was sooooo
1717
string Name { get; }
1818

1919
/// <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.
2222
/// </summary>
2323
/// <param name="node">The encountered syntax node.</param>
2424
/// <param name="discrim">The discriminator for this member.</param>
2525
/// <param name="existing">The current member stored in the <see cref="BakeSet" />.</param>
2626
/// <returns>The merged type declaration.</returns>
27-
MemberDeclarationSyntax GetTypeDeclaration(
27+
MemberDeclarationSyntax BakeMember(
2828
MemberDeclarationSyntax node,
2929
string? discrim,
3030
BakedMember? existing

0 commit comments

Comments
 (0)