Skip to content

Commit b216fee

Browse files
chore(deps): update dependency mudblazor to v9 (#615)
* chore(deps): update dependency mudblazor to v9 * add new() constraint support to type params --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: David Vreony <dpvreony@users.noreply.github.com>
1 parent 312500e commit b216fee

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/ReactiveUI.Blazor.ViewToViewModelBindings/ReactiveUI.Blazor.ViewToViewModelBindings.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</PropertyGroup>
1919

2020
<ItemGroup>
21-
<PackageReference Include="MudBlazor" Version="8.15.0" />
21+
<PackageReference Include="MudBlazor" Version="9.0.0" />
2222
<PackageReference Include="ReactiveUI.Blazor" Version="22.3.1" ReferenceOutputAssembly="true" />
2323
</ItemGroup>
2424

src/Vetuviem.IntegrationTests/Vetuviem.IntegrationTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageReference Include="Avalonia.ReactiveUI" Version="11.3.9" />
1313
<PackageReference Include="MahApps.Metro" Version="2.4.11" />
1414
<PackageReference Include="MahApps.Metro.SimpleChildWindow" Version="2.2.1" />
15-
<PackageReference Include="MudBlazor" Version="8.15.0" />
15+
<PackageReference Include="MudBlazor" Version="9.0.0" />
1616
<PackageReference Include="ReactiveUI.Blazor" Version="22.3.1" />
1717
<PackageReference Include="ReactiveUI.WPF" Version="22.3.1" />
1818
</ItemGroup>

src/Vetuviem.SourceGenerator/Features/ControlBindingModels/AbstractControlBindingModelClassGenerator.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,8 @@ protected static void ApplyTypeConstraintsFromNamedTypedSymbol(
130130
}
131131
}
132132

133-
134133
#if TODO
135134
var constraintNullableAnnotations = typeParameterSymbol.ConstraintNullableAnnotations;
136-
var hasConstructorConstraint = typeParameterSymbol.HasConstructorConstraint;
137135
var hasUnmanagedTypeConstraint = typeParameterSymbol.HasUnmanagedTypeConstraint;
138136
var hasValueTypeConstraint = typeParameterSymbol.HasValueTypeConstraint;
139137
var referenceTypeConstraintNullableAnnotation = typeParameterSymbol.ReferenceTypeConstraintNullableAnnotation;
@@ -148,6 +146,14 @@ protected static void ApplyTypeConstraintsFromNamedTypedSymbol(
148146
typeParameterConstraintSyntaxList.Add(constraintToAdd);
149147
}
150148

149+
// new() constraint must be last, so we add it after processing the others.
150+
var hasConstructorConstraint = typeParameterSymbol.HasConstructorConstraint;
151+
if (hasConstructorConstraint)
152+
{
153+
var constructorConstraint = SyntaxFactory.ConstructorConstraint();
154+
typeParameterConstraintSyntaxList.Add(constructorConstraint);
155+
}
156+
151157
if (typeParameterConstraintSyntaxList.Count < 1)
152158
{
153159
continue;

0 commit comments

Comments
 (0)