diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs index 5df0b36c8..568f528e6 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs @@ -1,7 +1,7 @@ using System; namespace CustomAttributes2 { - public static class CustomAtributes + public static class CustomAttributes { [Flags] public enum EnumWithFlag diff --git a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs index aa782a92f..4962e13cd 100644 --- a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs +++ b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs @@ -238,7 +238,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver throw new NotSupportedException(); } - public UnaryOperatorMethod(ICompilation compilaton) : base(compilaton) + public UnaryOperatorMethod(ICompilation compilation) : base(compilation) { } } diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs index c8d632b0e..af98c684a 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs @@ -564,14 +564,14 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax return attr; } - private IEnumerable ConvertAttributes(IEnumerable attibutes) + private IEnumerable ConvertAttributes(IEnumerable attributes) { - return attibutes.Select(a => new AttributeSection(ConvertAttribute(a))); + return attributes.Select(a => new AttributeSection(ConvertAttribute(a))); } - private IEnumerable ConvertAttributes(IEnumerable attibutes, string target) + private IEnumerable ConvertAttributes(IEnumerable attributes, string target) { - return attibutes.Select(a => new AttributeSection(ConvertAttribute(a)) { + return attributes.Select(a => new AttributeSection(ConvertAttribute(a)) { AttributeTarget = target }); } diff --git a/ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs b/ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs index 0ae42262b..1ba3a1437 100644 --- a/ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs +++ b/ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs @@ -580,7 +580,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow List additionalNodes = new List(); // Find additionalNodes nodes and mark them as visited. candidate.TraversePreOrder(n => n.Predecessors, additionalNodes.Add); - // This means Visited now represents the candiate extended loop. + // This means Visited now represents the candidate extended loop. // Determine new exit points that are reachable from the additional nodes // (note: some of these might have previously been exit points, too) var newExitPoints = additionalNodes.SelectMany(n => n.Successors).Where(n => !n.Visited).ToHashSet(); diff --git a/ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs b/ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs index 08a1f185f..e7d771ddf 100644 --- a/ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs +++ b/ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs @@ -396,7 +396,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow /// /// Does some of the analysis of SwitchOnNullableTransform to add the null case control flow - /// to the results of SwitchAnaylsis + /// to the results of SwitchAnalysis /// private void AddNullCase(List flowNodes, List caseNodes) { diff --git a/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs index bc3e05151..38b8bb942 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs @@ -69,7 +69,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms /// "a.GetValueOrDefault() == b.GetValueOrDefault() && (a.HasValue & b.HasValue)" /// to /// "(a.GetValueOrDefault() == b.GetValueOrDefault()) & (a.HasValue & b.HasValue)" - /// so this secondary entry point analyses logic.and as-if it was a short-circuting &&. + /// so this secondary entry point analyses logic.and as-if it was a short-circuiting &&. /// public bool Run(BinaryNumericInstruction bni) { diff --git a/ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs index e73fab690..332a1a113 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs @@ -29,7 +29,7 @@ namespace ICSharpCode.Decompiler.IL /// Improves code quality by duplicating keyword exits to reduce nesting and restoring IL order. /// /// - /// ConditionDetection and DetectSwitchBody both have agressive inlining policies for else blocks and default cases respectively. + /// ConditionDetection and DetectSwitchBody both have aggressive inlining policies for else blocks and default cases respectively. /// This can lead to excessive indentation when the entire rest of the method/loop is included in the else block/default case. /// When an If/SwitchInstruction is followed immediately by a keyword exit, the exit can be moved into the child blocks /// allowing the else block or default case to be moved after the if/switch as all prior cases exit. diff --git a/ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs b/ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs index d21d79ec9..bf9a9cede 100644 --- a/ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs +++ b/ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs @@ -39,7 +39,7 @@ namespace LightJson /// /// The key of the property to get or set. /// - /// The getter will return JsonValue.Null if the given key is not assosiated with any value. + /// The getter will return JsonValue.Null if the given key is not associated with any value. /// public JsonValue this[string key] { get { diff --git a/ILSpy.AddIn/SyntaxNodeExtensions.cs b/ILSpy.AddIn/SyntaxNodeExtensions.cs index ccba51907..f6ecc87ae 100644 --- a/ILSpy.AddIn/SyntaxNodeExtensions.cs +++ b/ILSpy.AddIn/SyntaxNodeExtensions.cs @@ -404,15 +404,15 @@ namespace ICSharpCode.ILSpy.AddIn public static NamespaceDeclarationSyntax GetInnermostNamespaceDeclarationWithUsings(this SyntaxNode contextNode) { - var usingDirectiveAncsestor = contextNode.GetAncestor(); - if (usingDirectiveAncsestor == null) + var usingDirectiveAncestor = contextNode.GetAncestor(); + if (usingDirectiveAncestor == null) { return contextNode.GetAncestorsOrThis().FirstOrDefault(n => n.Usings.Count > 0); } else { // We are inside a using directive. In this case, we should find and return the first 'parent' namespace with usings. - var containingNamespace = usingDirectiveAncsestor.GetAncestor(); + var containingNamespace = usingDirectiveAncestor.GetAncestor(); if (containingNamespace == null) { // We are inside a top level using directive (i.e. one that's directly in the compilation unit). diff --git a/SharpTreeView/EditTextBox.cs b/SharpTreeView/EditTextBox.cs index d4cdad272..fdd3996a0 100644 --- a/SharpTreeView/EditTextBox.cs +++ b/SharpTreeView/EditTextBox.cs @@ -49,12 +49,12 @@ namespace ICSharpCode.TreeView } } - bool commiting; + bool committing; void Commit() { - if (!commiting) { - commiting = true; + if (!committing) { + committing = true; Node.IsEditing = false; if (!Node.SaveEditText(Text)) { @@ -70,7 +70,7 @@ namespace ICSharpCode.TreeView // Init(); //} - commiting = false; + committing = false; } } }