Skip to content

Commit

Permalink
Merge pull request #6231 from MihaMarkic/comments_syntax
Browse files Browse the repository at this point in the history
Applies spell checking on mostly comments, but also non public member…
  • Loading branch information
jmacato authored and danwalmsley committed Aug 17, 2021
1 parent 7fd6595 commit 86e81f6
Show file tree
Hide file tree
Showing 52 changed files with 109 additions and 109 deletions.
2 changes: 1 addition & 1 deletion src/Avalonia.Base/AvaloniaObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ private string GetDescription(object o)
}

/// <summary>
/// Logs a mesage if the notification represents a binding error.
/// Logs a message if the notification represents a binding error.
/// </summary>
/// <param name="property">The property being bound.</param>
/// <param name="value">The binding notification.</param>
Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Base/AvaloniaProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,9 @@ public override string ToString()
/// Uses the visitor pattern to resolve an untyped property to a typed property.
/// </summary>
/// <typeparam name="TData">The type of user data passed.</typeparam>
/// <param name="vistor">The visitor which will accept the typed property.</param>
/// <param name="visitor">The visitor which will accept the typed property.</param>
/// <param name="data">The user data to pass.</param>
public abstract void Accept<TData>(IAvaloniaPropertyVisitor<TData> vistor, ref TData data)
public abstract void Accept<TData>(IAvaloniaPropertyVisitor<TData> visitor, ref TData data)
where TData : struct;

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Base/AvaloniaPropertyChangedEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ public AvaloniaPropertyChangedEventArgs(
/// <remarks>
/// This will usually be true, except in
/// <see cref="AvaloniaObject.OnPropertyChangedCore{T}(AvaloniaPropertyChangedEventArgs{T})"/>
/// which recieves notifications for all changes to property values, whether a value with a higher
/// priority is present or not. When this property is false, the change that is being signalled
/// which receives notifications for all changes to property values, whether a value with a higher
/// priority is present or not. When this property is false, the change that is being signaled
/// has not resulted in a change to the property value on the object.
/// </remarks>
public bool IsEffectiveValueChange { get; private set; }
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Collections/Pooled/PooledList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ public void Reverse()
/// Reverses the elements in a range of this list. Following a call to this
/// method, an element in the range given by index and count
/// which was previously located at index i will now be located at
/// index index + (index + count - i - 1).
/// index + (index + count - i - 1).
/// </summary>
public void Reverse(int index, int count)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface IDataValidationPlugin
/// </summary>
/// <param name="reference">A weak reference to the object.</param>
/// <param name="propertyName">The property name.</param>
/// <param name="inner">The inner property accessor used to aceess the property.</param>
/// <param name="inner">The inner property accessor used to access the property.</param>
/// <returns>
/// An <see cref="IPropertyAccessor"/> interface through which future interactions with the
/// property will be made.
Expand Down
6 changes: 3 additions & 3 deletions src/Avalonia.Base/DirectPropertyBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Avalonia
/// <typeparam name="TValue">The type of the property's value.</typeparam>
/// <remarks>
/// Whereas <see cref="DirectProperty{TOwner, TValue}"/> is typed on the owner type, this base
/// class provides a non-owner-typed interface to a direct poperty.
/// class provides a non-owner-typed interface to a direct property.
/// </remarks>
public abstract class DirectPropertyBase<TValue> : AvaloniaProperty<TValue>
{
Expand Down Expand Up @@ -123,9 +123,9 @@ public void OverrideMetadata(Type type, DirectPropertyMetadata<TValue> metadata)
}

/// <inheritdoc/>
public override void Accept<TData>(IAvaloniaPropertyVisitor<TData> vistor, ref TData data)
public override void Accept<TData>(IAvaloniaPropertyVisitor<TData> visitor, ref TData data)
{
vistor.Visit(this, ref data);
visitor.Visit(this, ref data);
}

/// <inheritdoc/>
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Base/DirectPropertyMetadata`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public DirectPropertyMetadata(
/// <remarks>
/// Data validation is validation performed at the target of a binding, for example in a
/// view model using the INotifyDataErrorInfo interface. Only certain properties on a
/// control (such as a TextBox's Text property) will be interested in recieving data
/// control (such as a TextBox's Text property) will be interested in receiving data
/// validation messages so this feature must be explicitly enabled by setting this flag.
/// </remarks>
public bool? EnableDataValidation { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ public int PageSize
if (!CheckFlag(CollectionViewFlags.IsMoveToPageDeferred))
{
// if the temporaryGroup was not created yet and is out of sync
// then create it so that we can use it as a refernce while paging.
// then create it so that we can use it as a reference while paging.
if (IsGrouping && _temporaryGroup.ItemCount != InternalList.Count)
{
PrepareTemporaryGroups();
Expand All @@ -889,7 +889,7 @@ public int PageSize
else if (IsGrouping)
{
// if the temporaryGroup was not created yet and is out of sync
// then create it so that we can use it as a refernce while paging.
// then create it so that we can use it as a reference while paging.
if (_temporaryGroup.ItemCount != InternalList.Count)
{
// update the groups that get created for the
Expand Down Expand Up @@ -1951,7 +1951,7 @@ public object GetItemAt(int index)
EnsureCollectionInSync();
VerifyRefreshNotDeferred();

// for indicies larger than the count
// for indices larger than the count
if (index >= Count || index < 0)
{
throw new ArgumentOutOfRangeException("index");
Expand Down Expand Up @@ -3800,7 +3800,7 @@ private void SetCurrent(object newItem, int newPosition)
/// </summary>
/// <remarks>
/// This method can be called from a constructor - it does not call
/// any virtuals. The 'count' parameter is substitute for the real Count,
/// any virtuals. The 'count' parameter is substitute for the real Count,
/// used only when newItem is null.
/// In that case, this method sets IsCurrentAfterLast to true if and only
/// if newPosition >= count. This distinguishes between a null belonging
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGrid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5771,7 +5771,7 @@ private bool UpdateStateOnMouseLeftButtonDown(PointerPressedEventArgs pointerPre
{
if (SelectionMode == DataGridSelectionMode.Single || !ctrl)
{
// Unselect the currectly selected rows except the new selected row
// Unselect the currently selected rows except the new selected row
action = DataGridSelectionAction.SelectCurrent;
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGridCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ internal void UpdatePseudoClasses()
}

// Makes sure the right gridline has the proper stroke and visibility. If lastVisibleColumn is specified, the
// right gridline will be collapsed if this cell belongs to the lastVisibileColumn and there is no filler column
// right gridline will be collapsed if this cell belongs to the lastVisibleColumn and there is no filler column
internal void EnsureGridLine(DataGridColumn lastVisibleColumn)
{
if (OwningGrid != null && _rightGridLine != null)
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGridCellCoordinates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public override bool Equals(object o)
return false;
}

// There is build warning if this is missiing
// There is build warning if this is missing
public override int GetHashCode()
{
return base.GetHashCode();
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGridClipboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public bool IsColumnHeadersRow
}

/// <summary>
/// DataGrid row item used for proparing the ClipboardRowContent.
/// DataGrid row item used for preparing the ClipboardRowContent.
/// </summary>
public object Item
{
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls.DataGrid/DataGridColumn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ internal DataGridLength CoerceWidth(DataGridLength width)
}

/// <summary>
/// If the DataGrid is using using layout rounding, the pixel snapping will force all widths to
/// If the DataGrid is using layout rounding, the pixel snapping will force all widths to
/// whole numbers. Since the column widths aren't visual elements, they don't go through the normal
/// rounding process, so we need to do it ourselves. If we don't, then we'll end up with some
/// pixel gaps and/or overlaps between columns.
Expand Down
8 changes: 4 additions & 4 deletions src/Avalonia.Controls.DataGrid/DataGridDisplayData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ internal double PendingVerticalScrollHeight
set;
}

internal void AddRecylableRow(DataGridRow row)
internal void AddRecyclableRow(DataGridRow row)
{
Debug.Assert(!_recyclableRows.Contains(row));
row.DetachFromDataGrid(true);
Expand Down Expand Up @@ -120,7 +120,7 @@ internal void ClearElements(bool recycle)
{
if (row.IsRecyclable)
{
AddRecylableRow(row);
AddRecyclableRow(row);
}
else
{
Expand Down Expand Up @@ -193,7 +193,7 @@ private int GetCircularListIndex(int slot, bool wrap)

internal void FullyRecycleElements()
{
// Fully recycle Recycleable rows and transfer them to Recycled rows
// Fully recycle Recyclable rows and transfer them to Recycled rows
while (_recyclableRows.Count > 0)
{
DataGridRow row = _recyclableRows.Pop();
Expand All @@ -202,7 +202,7 @@ internal void FullyRecycleElements()
Debug.Assert(!_fullyRecycledRows.Contains(row));
_fullyRecycledRows.Push(row);
}
// Fully recycle Recycleable GroupHeaders and transfer them to Recycled GroupHeaders
// Fully recycle Recyclable GroupHeaders and transfer them to Recycled GroupHeaders
while (_recyclableGroupHeaders.Count > 0)
{
DataGridRowGroupHeader groupHeader = _recyclableGroupHeaders.Pop();
Expand Down
6 changes: 3 additions & 3 deletions src/Avalonia.Controls.DataGrid/DataGridRow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ internal int Slot
set;
}

// Height that the row will eventually end up at after a possible detalis animation has completed
// Height that the row will eventually end up at after a possible details animation has completed
internal double TargetHeight
{
get
Expand Down Expand Up @@ -517,7 +517,7 @@ protected override Size MeasureOverride(Size availableSize)
return base.MeasureOverride(availableSize);
}

//Allow the DataGrid specific componets to adjust themselves based on new values
//Allow the DataGrid specific components to adjust themselves based on new values
if (_headerElement != null)
{
_headerElement.InvalidateMeasure();
Expand Down Expand Up @@ -722,7 +722,7 @@ internal void EnsureGridLines()
if (_bottomGridLine != null)
{
// It looks like setting Visibility sometimes has side effects so make sure the value is actually
// diffferent before setting it
// different before setting it
bool newVisibility = OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.Horizontal || OwningGrid.GridLinesVisibility == DataGridGridLinesVisibility.All;

if (newVisibility != _bottomGridLine.IsVisible)
Expand Down
18 changes: 9 additions & 9 deletions src/Avalonia.Controls.DataGrid/DataGridRows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,7 @@ private void InsertDisplayedElement(int slot, Control element, bool wasNewlyAdde
else
{
groupHeader = element as DataGridRowGroupHeader;
Debug.Assert(groupHeader != null); // Nothig other and Rows and RowGroups now
Debug.Assert(groupHeader != null); // Nothing other and Rows and RowGroups now
if (groupHeader != null)
{
groupHeader.TotalIndent = (groupHeader.Level == 0) ? 0 : RowGroupSublevelIndents[groupHeader.Level - 1];
Expand Down Expand Up @@ -1636,7 +1636,7 @@ private bool SlotIsDisplayed(int slot)
if (slot >= DisplayData.FirstScrollingSlot &&
slot <= DisplayData.LastScrollingSlot)
{
// Additional row takes the spot of a displayed row - it is necessarilly displayed
// Additional row takes the spot of a displayed row - it is necessarily displayed
return true;
}
else if (DisplayData.FirstScrollingSlot == -1 &&
Expand Down Expand Up @@ -1825,7 +1825,7 @@ private void ScrollSlotsByHeight(double height)
if (MathUtilities.LessThan(firstRowHeight, NegVerticalOffset))
{
// We've scrolled off more of the first row than what's possible. This can happen
// if the first row got shorter (Ex: Collpasing RowDetails) or if the user has a recycling
// if the first row got shorter (Ex: Collapsing RowDetails) or if the user has a recycling
// cleanup issue. In this case, simply try to display the next row as the first row instead
if (newFirstScrollingSlot < SlotCount - 1)
{
Expand Down Expand Up @@ -2014,7 +2014,7 @@ private void UnloadRow(DataGridRow dataGridRow)

if (recycleRow)
{
DisplayData.AddRecylableRow(dataGridRow);
DisplayData.AddRecyclableRow(dataGridRow);
}
else
{
Expand Down Expand Up @@ -2265,7 +2265,7 @@ private void CollectionViewGroup_CollectionChanged_Add(object sender, NotifyColl
if (parentGroupInfo.LastSubItemSlot - parentGroupInfo.Slot == 1)
{
// We just added the first item to a RowGroup so the header should transition from Empty to either Expanded or Collapsed
EnsureAnscestorsExpanderButtonChecked(parentGroupInfo);
EnsureAncestorsExpanderButtonChecked(parentGroupInfo);
}
}
}
Expand Down Expand Up @@ -2407,7 +2407,7 @@ private int CountAndPopulateGroupHeaders(object group, int rootSlot, int level)
return treeCount;
}

private void EnsureAnscestorsExpanderButtonChecked(DataGridRowGroupInfo parentGroupInfo)
private void EnsureAncestorsExpanderButtonChecked(DataGridRowGroupInfo parentGroupInfo)
{
if (IsSlotVisible(parentGroupInfo.Slot))
{
Expand Down Expand Up @@ -2789,11 +2789,11 @@ private DataGridRowGroupInfo GetParentGroupInfo(object collection)
return null;
}

internal void OnRowGroupHeaderToggled(DataGridRowGroupHeader groupHeader, bool newIsVisibile, bool setCurrent)
internal void OnRowGroupHeaderToggled(DataGridRowGroupHeader groupHeader, bool newIsVisible, bool setCurrent)
{
Debug.Assert(groupHeader.RowGroupInfo.CollectionViewGroup.ItemCount > 0);

if (WaitForLostFocus(delegate { OnRowGroupHeaderToggled(groupHeader, newIsVisibile, setCurrent); }) || !CommitEdit())
if (WaitForLostFocus(delegate { OnRowGroupHeaderToggled(groupHeader, newIsVisible, setCurrent); }) || !CommitEdit())
{
return;
}
Expand All @@ -2804,7 +2804,7 @@ internal void OnRowGroupHeaderToggled(DataGridRowGroupHeader groupHeader, bool n
UpdateSelectionAndCurrency(CurrentColumnIndex, groupHeader.RowGroupInfo.Slot, DataGridSelectionAction.SelectCurrent, scrollIntoView: false);
}

UpdateRowGroupVisibility(groupHeader.RowGroupInfo, newIsVisibile, isDisplayed: true);
UpdateRowGroupVisibility(groupHeader.RowGroupInfo, newIsVisible, isDisplayed: true);

ComputeScrollBarsLayout();
// We need force arrange since our Scrollings Rows could update without automatically triggering layout
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected override Size ArrangeOverride(Size finalSize)
if (dataGridColumn.IsFrozen)
{
columnHeader.Arrange(new Rect(frozenLeftEdge, 0, dataGridColumn.LayoutRoundedWidth, finalSize.Height));
columnHeader.Clip = null; // The layout system could have clipped this becaues it's not aware of our render transform
columnHeader.Clip = null; // The layout system could have clipped this because it's not aware of our render transform
if (DragColumn == dataGridColumn && DragIndicator != null)
{
dragIndicatorLeftEdge = frozenLeftEdge + DragIndicatorOffset;
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/AppBuilderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public TAppBuilder With<T>(Func<T> options)
}

/// <summary>
/// Sets up the platform-speciic services for the <see cref="Application"/>.
/// Sets up the platform-specific services for the <see cref="Application"/>.
/// </summary>
private void Setup()
{
Expand Down
10 changes: 5 additions & 5 deletions src/Avalonia.Controls/Converters/MarginMultiplierConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
Right ? Indent * scalarDepth : 0,
Bottom ? Indent * scalarDepth : 0);
}
else if (value is Thickness thinknessDepth)
else if (value is Thickness thicknessDepth)
{
return new Thickness(
Left ? Indent * thinknessDepth.Left : 0,
Top ? Indent * thinknessDepth.Top : 0,
Right ? Indent * thinknessDepth.Right : 0,
Bottom ? Indent * thinknessDepth.Bottom : 0);
Left ? Indent * thicknessDepth.Left : 0,
Top ? Indent * thicknessDepth.Top : 0,
Right ? Indent * thicknessDepth.Right : 0,
Bottom ? Indent * thicknessDepth.Bottom : 0);
}
return new Thickness(0);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ public object Convert(IList<object> values, Type targetType, object parameter, C
if (parameter == null ||
values == null ||
values.Count != 4 ||
!(values[0] is ScrollBarVisibility visiblity) ||
!(values[0] is ScrollBarVisibility visibility) ||
!(values[1] is double offset) ||
!(values[2] is double extent) ||
!(values[3] is double viewport))
{
return AvaloniaProperty.UnsetValue;
}

if (visiblity == ScrollBarVisibility.Auto)
if (visibility == ScrollBarVisibility.Auto)
{
if (extent == viewport)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/DateTimePickers/DatePicker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class DatePicker : TemplatedControl
x => x.MonthVisible, (x, v) => x.MonthVisible = v);

/// <summary>
/// Defiens the <see cref="YearFormat"/> Property
/// Defines the <see cref="YearFormat"/> Property
/// </summary>
public static readonly DirectProperty<DatePicker, string> YearFormatProperty =
AvaloniaProperty.RegisterDirect<DatePicker, string>(nameof(YearFormat),
Expand Down
Loading

0 comments on commit 86e81f6

Please sign in to comment.