Browse Source

Merge pull request #1751 from github-jane-doe/typos

Typos
pull/1763/head
Siegfried Pammer 6 years ago committed by GitHub
parent
commit
99fc4d8b83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs
  2. 2
      ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs
  3. 8
      ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs
  4. 2
      ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs
  5. 2
      ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs
  6. 2
      ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs
  7. 2
      ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs
  8. 2
      ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs
  9. 6
      ILSpy.AddIn/SyntaxNodeExtensions.cs
  10. 8
      SharpTreeView/EditTextBox.cs

2
ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributes2.cs

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@
using System;
namespace CustomAttributes2
{
public static class CustomAtributes
public static class CustomAttributes
{
[Flags]
public enum EnumWithFlag

2
ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs

@ -238,7 +238,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver @@ -238,7 +238,7 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver
throw new NotSupportedException();
}
public UnaryOperatorMethod(ICompilation compilaton) : base(compilaton)
public UnaryOperatorMethod(ICompilation compilation) : base(compilation)
{
}
}

8
ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs

@ -564,14 +564,14 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -564,14 +564,14 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return attr;
}
private IEnumerable<AttributeSection> ConvertAttributes(IEnumerable<IAttribute> attibutes)
private IEnumerable<AttributeSection> ConvertAttributes(IEnumerable<IAttribute> attributes)
{
return attibutes.Select(a => new AttributeSection(ConvertAttribute(a)));
return attributes.Select(a => new AttributeSection(ConvertAttribute(a)));
}
private IEnumerable<AttributeSection> ConvertAttributes(IEnumerable<IAttribute> attibutes, string target)
private IEnumerable<AttributeSection> ConvertAttributes(IEnumerable<IAttribute> attributes, string target)
{
return attibutes.Select(a => new AttributeSection(ConvertAttribute(a)) {
return attributes.Select(a => new AttributeSection(ConvertAttribute(a)) {
AttributeTarget = target
});
}

2
ICSharpCode.Decompiler/IL/ControlFlow/LoopDetection.cs

@ -580,7 +580,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow @@ -580,7 +580,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow
List<ControlFlowNode> additionalNodes = new List<ControlFlowNode>();
// 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();

2
ICSharpCode.Decompiler/IL/ControlFlow/SwitchDetection.cs

@ -396,7 +396,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow @@ -396,7 +396,7 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow
/// <summary>
/// Does some of the analysis of SwitchOnNullableTransform to add the null case control flow
/// to the results of SwitchAnaylsis
/// to the results of SwitchAnalysis
/// </summary>
private void AddNullCase(List<ControlFlowNode> flowNodes, List<ControlFlowNode> caseNodes)
{

2
ICSharpCode.Decompiler/IL/Transforms/NullableLiftingTransform.cs

@ -69,7 +69,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -69,7 +69,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
/// "a.GetValueOrDefault() == b.GetValueOrDefault() &amp;&amp; (a.HasValue &amp; b.HasValue)"
/// to
/// "(a.GetValueOrDefault() == b.GetValueOrDefault()) &amp; (a.HasValue &amp; b.HasValue)"
/// so this secondary entry point analyses logic.and as-if it was a short-circuting &amp;&amp;.
/// so this secondary entry point analyses logic.and as-if it was a short-circuiting &amp;&amp;.
/// </summary>
public bool Run(BinaryNumericInstruction bni)
{

2
ICSharpCode.Decompiler/IL/Transforms/ReduceNestingTransform.cs

@ -29,7 +29,7 @@ namespace ICSharpCode.Decompiler.IL @@ -29,7 +29,7 @@ namespace ICSharpCode.Decompiler.IL
/// Improves code quality by duplicating keyword exits to reduce nesting and restoring IL order.
/// </summary>
/// <remarks>
/// 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.

2
ICSharpCode.Decompiler/Metadata/LightJson/JsonObject.cs

@ -39,7 +39,7 @@ namespace LightJson @@ -39,7 +39,7 @@ namespace LightJson
/// </summary>
/// <param name="key">The key of the property to get or set.</param>
/// <remarks>
/// 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.
/// </remarks>
public JsonValue this[string key] {
get {

6
ILSpy.AddIn/SyntaxNodeExtensions.cs

@ -404,15 +404,15 @@ namespace ICSharpCode.ILSpy.AddIn @@ -404,15 +404,15 @@ namespace ICSharpCode.ILSpy.AddIn
public static NamespaceDeclarationSyntax GetInnermostNamespaceDeclarationWithUsings(this SyntaxNode contextNode)
{
var usingDirectiveAncsestor = contextNode.GetAncestor<UsingDirectiveSyntax>();
if (usingDirectiveAncsestor == null)
var usingDirectiveAncestor = contextNode.GetAncestor<UsingDirectiveSyntax>();
if (usingDirectiveAncestor == null)
{
return contextNode.GetAncestorsOrThis<NamespaceDeclarationSyntax>().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<NamespaceDeclarationSyntax>();
var containingNamespace = usingDirectiveAncestor.GetAncestor<NamespaceDeclarationSyntax>();
if (containingNamespace == null)
{
// We are inside a top level using directive (i.e. one that's directly in the compilation unit).

8
SharpTreeView/EditTextBox.cs

@ -49,12 +49,12 @@ namespace ICSharpCode.TreeView @@ -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 @@ -70,7 +70,7 @@ namespace ICSharpCode.TreeView
// Init();
//}
commiting = false;
committing = false;
}
}
}

Loading…
Cancel
Save