Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spellchecks comments and code in Avalonia.Base #1858

Merged
merged 1 commit into from
Sep 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/Avalonia.Base/AvaloniaLocator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Reactive.Disposables;

#pragma warning disable CS1591 // Enable me later

Expand Down
2 changes: 0 additions & 2 deletions src/Avalonia.Base/AvaloniaObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using Avalonia.Data;
using Avalonia.Diagnostics;
using Avalonia.Logging;
using Avalonia.Reactive;
using Avalonia.Threading;
using Avalonia.Utilities;

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 @@ -231,7 +231,7 @@ protected AvaloniaProperty(
}

/// <summary>
/// Tests two <see cref="AvaloniaProperty"/>s for unequality.
/// Tests two <see cref="AvaloniaProperty"/>s for inequality.
/// </summary>
/// <param name="a">The first property.</param>
/// <param name="b">The second property.</param>
Expand Down Expand Up @@ -558,4 +558,4 @@ private class Unset
public override string ToString() => "(unset)";
}
}
}
}
3 changes: 1 addition & 2 deletions src/Avalonia.Base/Collections/AvaloniaList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.ComponentModel;
using System.Linq;
using Avalonia.Diagnostics;
using Avalonia.Platform;

namespace Avalonia.Collections
{
Expand Down Expand Up @@ -551,4 +550,4 @@ private void NotifyReset(IList t)
NotifyCountChanged();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Collections/AvaloniaListConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo c
return result;
}
}
}
}
1 change: 0 additions & 1 deletion src/Avalonia.Base/Collections/AvaloniaListExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Reactive.Disposables;

namespace Avalonia.Collections
Expand Down
4 changes: 2 additions & 2 deletions src/Avalonia.Base/Collections/IAvaloniaList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Avalonia.Collections
{
/// <summary>
/// A notiftying list.
/// A notifying list.
/// </summary>
/// <typeparam name="T">The type of the items in the list.</typeparam>
public interface IAvaloniaList<T> : IList<T>, IAvaloniaReadOnlyList<T>
Expand Down Expand Up @@ -64,4 +64,4 @@ public interface IAvaloniaList<T> : IList<T>, IAvaloniaReadOnlyList<T>
/// <param name="count">The number of items to remove.</param>
void RemoveRange(int index, int count);
}
}
}
4 changes: 2 additions & 2 deletions src/Avalonia.Base/Collections/IAvaloniaReadOnlyList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
namespace Avalonia.Collections
{
/// <summary>
/// A read-only notiftying list.
/// A read-only notifying list.
/// </summary>
/// <typeparam name="T">The type of the items in the list.</typeparam>
public interface IAvaloniaReadOnlyList<out T> : IReadOnlyList<T>, INotifyCollectionChanged, INotifyPropertyChanged
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static IObservable<NotifyCollectionChangedEventArgs> GetWeakCollectionCha
}

/// <summary>
/// Subcribes to the CollectionChanged event using a weak subscription.
/// Subscribes to the CollectionChanged event using a weak subscription.
/// </summary>
/// <param name="collection">The collection.</param>
/// <param name="handler">
Expand All @@ -44,7 +44,7 @@ public static IDisposable WeakSubscribe(
}

/// <summary>
/// Subcribes to the CollectionChanged event using a weak subscription.
/// Subscribes to the CollectionChanged event using a weak subscription.
/// </summary>
/// <param name="collection">The collection.</param>
/// <param name="handler">
Expand Down
10 changes: 5 additions & 5 deletions src/Avalonia.Base/Data/BindingChainException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
namespace Avalonia.Data
{
/// <summary>
/// An exception returned through <see cref="BindingNotification"/> signalling that a
/// An exception returned through <see cref="BindingNotification"/> signaling that a
/// requested binding expression could not be evaluated because of a null in one of the links
/// of the binding chain.
/// </summary>
Expand All @@ -15,14 +15,14 @@ public class BindingChainException : Exception
private string _message;

/// <summary>
/// Initalizes a new instance of the <see cref="BindingChainException"/> class.
/// Initializes a new instance of the <see cref="BindingChainException"/> class.
/// </summary>
public BindingChainException()
{
}

/// <summary>
/// Initalizes a new instance of the <see cref="BindingChainException"/> class.
/// Initializes a new instance of the <see cref="BindingChainException"/> class.
/// </summary>
/// <param name="message">The error message.</param>
public BindingChainException(string message)
Expand All @@ -31,7 +31,7 @@ public BindingChainException(string message)
}

/// <summary>
/// Initalizes a new instance of the <see cref="BindingChainException"/> class.
/// Initializes a new instance of the <see cref="BindingChainException"/> class.
/// </summary>
/// <param name="message">The error message.</param>
/// <param name="expression">The expression.</param>
Expand All @@ -51,7 +51,7 @@ public BindingChainException(string message, string expression, string errorPoin
public string Expression { get; protected set; }

/// <summary>
/// Gets the point in the expression at which the error occured.
/// Gets the point in the expression at which the error occurred.
/// </summary>
public string ExpressionErrorPoint { get; protected set; }

Expand Down
1 change: 0 additions & 1 deletion src/Avalonia.Base/Data/BindingNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using Avalonia.Logging;

namespace Avalonia.Data
{
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Data/BindingOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static class BindingOperations
/// An optional anchor from which to locate required context. When binding to objects that
/// are not in the logical tree, certain types of binding need an anchor into the tree in
/// order to locate named controls or resources. The <paramref name="anchor"/> parameter
/// can be used to provice this context.
/// can be used to provide this context.
/// </param>
/// <returns>An <see cref="IDisposable"/> which can be used to cancel the binding.</returns>
public static IDisposable Apply(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using Avalonia.Utilities;
using System;
using System.Collections.Generic;
using System;
using System.Globalization;
using System.Reflection;
using System.Text;
using System.Windows.Input;
using Avalonia.Utilities;

namespace Avalonia.Data.Converters
{
Expand Down
3 changes: 1 addition & 2 deletions src/Avalonia.Base/Data/Converters/DefaultValueConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@

using System;
using System.Globalization;
using Avalonia.Data;
using Avalonia.Utilities;
using System.Windows.Input;
using Avalonia.Utilities;

namespace Avalonia.Data.Converters
{
Expand Down
1 change: 0 additions & 1 deletion src/Avalonia.Base/Data/Converters/IValueConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using System.Globalization;
using Avalonia.Data;

namespace Avalonia.Data.Converters
{
Expand Down
3 changes: 0 additions & 3 deletions src/Avalonia.Base/Data/Converters/StringConverters.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using System.Globalization;
using Avalonia.Utilities;

namespace Avalonia.Data.Converters
{
Expand Down
2 changes: 0 additions & 2 deletions src/Avalonia.Base/Data/Core/AvaloniaPropertyAccessorNode.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Reactive.Linq;
using System.Text;
using Avalonia.Reactive;

namespace Avalonia.Data.Core
Expand Down
3 changes: 0 additions & 3 deletions src/Avalonia.Base/Data/Core/EmptyExpressionNode.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
// Copyright (c) The Avalonia Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using System.Reactive.Linq;

namespace Avalonia.Data.Core
{
public class EmptyExpressionNode : ExpressionNode
Expand Down
1 change: 0 additions & 1 deletion src/Avalonia.Base/Data/Core/ExpressionObserver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Linq.Expressions;
using System.Reactive;
using System.Reactive.Linq;
using Avalonia.Data;
using Avalonia.Data.Core.Parsers;
using Avalonia.Data.Core.Plugins;
using Avalonia.Reactive;
Expand Down
1 change: 0 additions & 1 deletion src/Avalonia.Base/Data/Core/ExpressionParseException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using Avalonia.Data.Core.Parsers;

namespace Avalonia.Data.Core
{
Expand Down
6 changes: 1 addition & 5 deletions src/Avalonia.Base/Data/Core/ITransformNode.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Avalonia.Data.Core
namespace Avalonia.Data.Core
{
interface ITransformNode
{
Expand Down
2 changes: 0 additions & 2 deletions src/Avalonia.Base/Data/Core/IndexerExpressionNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
using System.ComponentModel;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using Avalonia.Data;

namespace Avalonia.Data.Core
{
Expand Down
4 changes: 0 additions & 4 deletions src/Avalonia.Base/Data/Core/IndexerNodeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,8 @@
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Globalization;
using System.Linq;
using System.Reactive.Linq;
using System.Reflection;
using System.Text;
using Avalonia.Data;
using Avalonia.Utilities;

namespace Avalonia.Data.Core
Expand Down
1 change: 0 additions & 1 deletion src/Avalonia.Base/Data/Core/LogicalNotNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System;
using System.Globalization;
using Avalonia.Data;

namespace Avalonia.Data.Core
{
Expand Down
5 changes: 1 addition & 4 deletions src/Avalonia.Base/Data/Core/Parsers/ExpressionTreeParser.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Avalonia.Data.Core.Parsers
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;

namespace Avalonia.Data.Core.Parsers
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using System.Linq;
using System.Reactive.Linq;
using Avalonia.Data;

namespace Avalonia.Data.Core.Plugins
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using Avalonia.Data;

namespace Avalonia.Data.Core.Plugins
{
Expand All @@ -31,7 +30,7 @@ public IPropertyAccessor Start(WeakReference reference, string name, IPropertyAc
return new Accessor(reference, name, inner);
}

private class Accessor : DataValidatiorBase
private class Accessor : DataValidationBase
{
private ValidationContext _context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ namespace Avalonia.Data.Core.Plugins
/// and convert any values received from the inner property accessor into
/// <see cref="BindingNotification"/>s.
/// </remarks>
public abstract class DataValidatiorBase : PropertyAccessorBase, IObserver<object>
public abstract class DataValidationBase : PropertyAccessorBase, IObserver<object>
{
private readonly IPropertyAccessor _inner;

/// <summary>
/// Initializes a new instance of the <see cref="DataValidatiorBase"/> class.
/// Initializes a new instance of the <see cref="DataValidationBase"/> class.
/// </summary>
/// <param name="inner">The inner property accessor.</param>
protected DataValidatiorBase(IPropertyAccessor inner)
protected DataValidationBase(IPropertyAccessor inner)
{
_inner = inner;
}
Expand Down Expand Up @@ -77,4 +77,4 @@ protected virtual void InnerValueChanged(object value)
PublishValue(notification);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public IPropertyAccessor Start(WeakReference reference, string name, IPropertyAc
return new Validator(reference, name, inner);
}

private class Validator : DataValidatiorBase
private class Validator : DataValidationBase
{
public Validator(WeakReference reference, string name, IPropertyAccessor inner)
: base(inner)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See licence.md file in the project root for full license information.

using System;
using Avalonia.Data;

namespace Avalonia.Data.Core.Plugins
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public IPropertyAccessor Start(WeakReference reference, string name, IPropertyAc
return new Validator(reference, name, accessor);
}

private class Validator : DataValidatiorBase, IWeakSubscriber<DataErrorsChangedEventArgs>
private class Validator : DataValidationBase, IWeakSubscriber<DataErrorsChangedEventArgs>
{
WeakReference _reference;
string _name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using System.Linq;
using System.Reactive.Linq;
using System.Reflection;
using Avalonia.Data;
using Avalonia.Logging;
using Avalonia.Utilities;

namespace Avalonia.Data.Core.Plugins
Expand Down
Loading