Skip to content

Commit 6f99bf1

Browse files
[create-pull-request] automated change
1 parent e729e0e commit 6f99bf1

File tree

159 files changed

+3764
-3737
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

159 files changed

+3764
-3737
lines changed

src/Compatibility/Core/src/Windows/CollectionView/ItemsViewRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,8 @@ bool IsElementVisibleInContainer(FrameworkElement element, FrameworkElement cont
597597

598598
default:
599599
return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left;
600-
};
600+
}
601+
;
601602
}
602603

603604
void OnScrollViewChanged(object sender, ScrollViewerViewChangedEventArgs e)

src/Compatibility/Core/src/iOS/Renderers/NavigationRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,8 @@ public override CGRect Frame
16421642
value.Width = (value.X - xSpace) + value.Width;
16431643
value.X = xSpace;
16441644
}
1645-
};
1645+
}
1646+
;
16461647

16471648
value.Height = ToolbarHeight;
16481649
}

src/Controls/src/BindingSourceGen/PathParser.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ private Result<List<IPathPart>> HandleBinaryExpression(BinaryExpressionSyntax as
142142
if (typeInfo == null)
143143
{
144144
return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castTo.GetLocation()));
145-
};
145+
}
146+
;
146147

147148
leftResult.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable)));
148149

@@ -161,7 +162,8 @@ private Result<List<IPathPart>> HandleCastExpression(CastExpressionSyntax castEx
161162
if (typeInfo == null)
162163
{
163164
return Result<List<IPathPart>>.Failure(DiagnosticsFactory.UnableToResolvePath(castExpression.GetLocation()));
164-
};
165+
}
166+
;
165167

166168
result.Value.Add(new Cast(typeInfo.CreateTypeDescription(_enabledNullable)));
167169

src/Controls/src/Build.Tasks/NodeILExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,9 @@ public static IEnumerable<Instruction> PushServiceProvider(this INode node, ILCo
655655
}
656656
else
657657
yield return Create(Ldnull);
658-
658+
659659
yield return Create(Newobj, module.ImportCtorReference(context.Cache,
660-
type: ("Microsoft.Maui.Controls.Xaml", "Microsoft.Maui.Controls.Xaml.Internals", "SimpleValueTargetProvider"),
660+
type: ("Microsoft.Maui.Controls.Xaml", "Microsoft.Maui.Controls.Xaml.Internals", "SimpleValueTargetProvider"),
661661
parameterTypes: [
662662
("mscorlib", "System", "Object[]"),
663663
("mscorlib", "System", "Object"),
@@ -677,7 +677,7 @@ public static IEnumerable<Instruction> PushServiceProvider(this INode node, ILCo
677677
yield return Create(Call, module.ImportMethodReference(context.Cache, ("mscorlib", "System", "Type"), methodName: "GetTypeFromHandle", parameterTypes: new[] { ("mscorlib", "System", "RuntimeTypeHandle") }, isStatic: true));
678678
yield return Create(Ldloc, refProvider);
679679
yield return Create(Callvirt, addService);
680-
680+
681681
yield return Create(Dup); //Keep the serviceProvider on the stack
682682
yield return Create(Ldtoken, module.ImportReference(context.Cache, ("Microsoft.Maui.Controls", "Microsoft.Maui.Controls.Xaml", "IRootObjectProvider")));
683683
yield return Create(Call, module.ImportMethodReference(context.Cache, ("mscorlib", "System", "Type"), methodName: "GetTypeFromHandle", parameterTypes: new[] { ("mscorlib", "System", "RuntimeTypeHandle") }, isStatic: true));

src/Controls/src/Build.Tasks/SetPropertiesVisitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ static IEnumerable<Instruction> SetBinding(VariableDefinition parent, FieldRefer
14101410

14111411
static bool CanSetValue(FieldReference bpRef, bool attached, INode node, IXmlLineInfo iXmlLineInfo, ILContext context)
14121412
{
1413-
static bool CanSetValue (TypeReference bpTypeRef, VariableDefinition varValue, ILContext context, IXmlLineInfo iXmlLineInfo)
1413+
static bool CanSetValue(TypeReference bpTypeRef, VariableDefinition varValue, ILContext context, IXmlLineInfo iXmlLineInfo)
14141414
{
14151415
// If it's an attached BP, there's no second chance to handle IMarkupExtensions, so we try here.
14161416
// Worst case scenario ? InvalidCastException at runtime
@@ -1527,7 +1527,7 @@ static IEnumerable<Instruction> SetValue(VariableDefinition parent, FieldReferen
15271527
yield return instruction;
15281528
if (bpTypeRef.IsValueType)
15291529
{
1530-
if ( bpTypeRef.ResolveCached(context.Cache).FullName == "System.Nullable`1"
1530+
if (bpTypeRef.ResolveCached(context.Cache).FullName == "System.Nullable`1"
15311531
&& TypeRefComparer.Default.Equals(varValue.VariableType, ((GenericInstanceType)bpTypeRef).GenericArguments[0]))
15321532
bpTypeRef = ((GenericInstanceType)bpTypeRef).GenericArguments[0];
15331533
yield return Create(Box, module.ImportReference(bpTypeRef));

src/Controls/src/Build.Tasks/XamlCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public FieldReference GetOrAddFieldReference((ModuleDefinition module, string fi
4242
public TypeReference GetOrAddTypeReference(ModuleDefinition module, (string assemblyName, string clrNamespace, string typeName) type) => GetOrAdd(_typeReferenceCache, (module, type.ToString()), x =>
4343
{
4444
if (type.typeName.EndsWith("[]", StringComparison.InvariantCultureIgnoreCase))
45-
return x.module.GetTypeDefinition(this, (type.assemblyName, type.clrNamespace, type.typeName.Substring(0, type.typeName.Length-2))).MakeArrayType();
45+
return x.module.GetTypeDefinition(this, (type.assemblyName, type.clrNamespace, type.typeName.Substring(0, type.typeName.Length - 2))).MakeArrayType();
4646
else
4747
return x.module.ImportReference(x.module.GetTypeDefinition(this, type));
4848
});

src/Controls/src/Core/AppThemeBinding.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ void Set()
114114
}
115115
target.SetValueCore(_targetProperty, value, Internals.SetValueFlags.ClearDynamicResource, BindableObject.SetValuePrivateFlags.Default | BindableObject.SetValuePrivateFlags.Converted, specificity);
116116
}
117-
};
117+
}
118+
;
118119
}
119120

120121
object _light;

src/Controls/src/Core/Compatibility/Handlers/FlyoutPage/iOS/PhoneFlyoutPageRenderer.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ protected override void Dispose(bool disposing)
269269
}
270270

271271
EmptyContainers();
272-
_element = null;
272+
_element = null;
273273
_disposed = true;
274274
}
275275

@@ -364,8 +364,8 @@ void HandlePropertyChanged(object sender, PropertyChangedEventArgs e)
364364
UpdateBackground();
365365
else if (e.PropertyName == PlatformConfiguration.iOSSpecific.FlyoutPage.ApplyShadowProperty.PropertyName)
366366
UpdateApplyShadow(((FlyoutPage)Element).OnThisPlatform().GetApplyShadow());
367-
else if (e.PropertyName == Microsoft.Maui.Controls.FlyoutPage.FlyoutLayoutBehaviorProperty.PropertyName)
368-
UpdateFlyoutLayoutBehaviorChanges();
367+
else if (e.PropertyName == Microsoft.Maui.Controls.FlyoutPage.FlyoutLayoutBehaviorProperty.PropertyName)
368+
UpdateFlyoutLayoutBehaviorChanges();
369369
else if (e.PropertyName == PlatformConfiguration.iOSSpecific.Page.PrefersHomeIndicatorAutoHiddenProperty.PropertyName ||
370370
e.PropertyName == PlatformConfiguration.iOSSpecific.Page.PrefersStatusBarHiddenProperty.PropertyName)
371371
UpdatePageSpecifics();
@@ -479,20 +479,20 @@ void LayoutChildren(bool animated)
479479
void UpdateFlyoutLayoutBehaviorChanges()
480480
{
481481
LayoutChildren(true);
482-
if (FlyoutPage is null)
482+
if (FlyoutPage is null)
483483
return;
484-
FlyoutLayoutBehavior flyoutBehavior = FlyoutPage.FlyoutLayoutBehavior;
485-
bool shouldPresent = FlyoutPageController.ShouldShowSplitMode;
486-
if (flyoutBehavior == FlyoutLayoutBehavior.Popover || flyoutBehavior == FlyoutLayoutBehavior.Default)
487-
{
488-
shouldPresent = false;
489-
}
490-
491-
if (shouldPresent != FlyoutPage.IsPresented)
492-
{
493-
((IElementController)Element).SetValueFromRenderer(FlyoutPage.IsPresentedProperty, shouldPresent);
494-
UpdateLeftBarButton();
495-
}
484+
FlyoutLayoutBehavior flyoutBehavior = FlyoutPage.FlyoutLayoutBehavior;
485+
bool shouldPresent = FlyoutPageController.ShouldShowSplitMode;
486+
if (flyoutBehavior == FlyoutLayoutBehavior.Popover || flyoutBehavior == FlyoutLayoutBehavior.Default)
487+
{
488+
shouldPresent = false;
489+
}
490+
491+
if (shouldPresent != FlyoutPage.IsPresented)
492+
{
493+
((IElementController)Element).SetValueFromRenderer(FlyoutPage.IsPresentedProperty, shouldPresent);
494+
UpdateLeftBarButton();
495+
}
496496
}
497497

498498
void PackContainers()

src/Controls/src/Core/Compatibility/Handlers/ListView/iOS/ListViewRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ public override UITableViewCell GetCell(UITableView tableView, NSIndexPath index
11151115
PreserveActivityIndicatorState(cell);
11161116
Performance.Stop(reference);
11171117

1118-
if(platformCell is ContextActionsCell contextActionsCell)
1118+
if (platformCell is ContextActionsCell contextActionsCell)
11191119
_contextActionsCells.Add(contextActionsCell);
11201120

11211121
return platformCell;

src/Controls/src/Core/Compatibility/Handlers/NavigationPage/iOS/NavigationRenderer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1996,7 +1996,8 @@ public override CGRect Frame
19961996
value.Width = (value.X - xSpace) + value.Width;
19971997
value.X = xSpace;
19981998
}
1999-
};
1999+
}
2000+
;
20002001

20012002
value.Height = ToolbarHeight;
20022003
}

0 commit comments

Comments
 (0)