Skip to content

Commit 825adf8

Browse files
committed
Corrected typo in GetDefautValueCreatorMethodName
1 parent 06dd458 commit 825adf8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal/Generators/BindablePropertyAttributeSourceGenerator.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static void GenerateReadOnlyBindableProperty(StringBuilder sb, in BindableProper
242242
.Append(", ")
243243
.Append(info.CoerceValueMethodName)
244244
.Append(", ")
245-
.Append(GetDefaulteValueCreatorMethod(in info))
245+
.Append(GetDefaultValueCreatorMethodName(in info))
246246
.Append(");\n");
247247

248248
// Generate public BindableProperty from the key
@@ -298,7 +298,7 @@ static void GenerateBindableProperty(StringBuilder sb, in BindablePropertyModel
298298
.Append(", ")
299299
.Append(info.CoerceValueMethodName)
300300
.Append(", ")
301-
.Append(GetDefaulteValueCreatorMethod(in info))
301+
.Append(GetDefaultValueCreatorMethodName(in info))
302302
.Append(");\n");
303303

304304
sb.Append('\n');
@@ -568,7 +568,7 @@ static string GetFormattedReturnType(ITypeSymbol typeSymbol)
568568
/// <returns>A string containing the name of the method that creates the default value for the property.
569569
/// If the property has an initializer, the returned name is of the generated default value method;
570570
/// otherwise, the default value creator method name from the model is returned.</returns>
571-
static string GetDefaulteValueCreatorMethod(in BindablePropertyModel info)
571+
static string GetDefaultValueCreatorMethodName(in BindablePropertyModel info)
572572
{
573573
if (info.HasInitializer)
574574
{
@@ -606,7 +606,7 @@ static void GenerateDefaultValueMethod(StringBuilder sb, in BindablePropertyMode
606606
var sanitizedPropertyName = IsDotnetKeyword(info.PropertyName) ? string.Concat("@", info.PropertyName) : info.PropertyName;
607607

608608
sb.Append("static object ")
609-
.Append(GetDefaulteValueCreatorMethod(in info))
609+
.Append(GetDefaultValueCreatorMethodName(in info))
610610
.Append("(global::Microsoft.Maui.Controls.BindableObject bindable)\n")
611611
.Append("{\n")
612612
.Append("((")

0 commit comments

Comments
 (0)