Skip to content

Commit 6575e2f

Browse files
[create-pull-request] automated change
1 parent e9171db commit 6575e2f

113 files changed

Lines changed: 1352 additions & 1326 deletions

File tree

Some content is hidden

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

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/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/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/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
}

src/Controls/src/Core/Compatibility/Handlers/Shell/Android/SearchHandlerAppearanceTracker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ void UpdateText()
9898
bool selectionExists = _editText.HasSelection;
9999

100100
_editText.Text = _searchHandler.Query ?? string.Empty;
101-
101+
102102
UpdateTextTransform();
103-
103+
104104
// If we had a selection, place the cursor at the end of text
105105
// Otherwise try to maintain the cursor at its previous position
106106
int textLength = _editText.Text?.Length ?? 0;
107107
int newPosition = selectionExists ? textLength : Math.Min(cursorPosition, textLength);
108-
108+
109109
// Prevents the cursor from resetting to position zero when text is set programmatically
110110
_editText.SetSelection(newPosition);
111111
}

src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellItemRendererBase.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@ void RemoveAllButCurrent(Fragment skip)
393393

394394
trans ??= ChildFragmentManager.BeginTransactionEx();
395395
trans.Remove(f);
396-
};
396+
}
397+
;
397398

398399
trans?.CommitAllowingStateLossEx();
399400
}

src/Controls/src/Core/Handlers/Items/ItemsViewHandler.Windows.cs

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

584584
default:
585585
return elementBounds.Left < containerBounds.Right && elementBounds.Right > containerBounds.Left;
586-
};
586+
}
587+
;
587588
}
588589

589590
async void ScrollToRequested(object sender, ScrollToRequestEventArgs args)

0 commit comments

Comments
 (0)