Browse Source

Remove unused usings in solution; remove dead code; unify namespaces

pull/728/merge
Siegfried Pammer 9 years ago
parent
commit
0524b4a353
  1. 47
      ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs
  2. 2
      ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs
  3. 159
      ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs
  4. 139
      ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs
  5. 2
      ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs
  6. 1
      ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs
  7. 2
      ICSharpCode.Decompiler/CSharp/Syntax/Role.cs
  8. 2
      ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs
  9. 2
      ICSharpCode.Decompiler/CecilExtensions.cs
  10. 2
      ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs
  11. 2
      ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs
  12. 2
      ICSharpCode.Decompiler/Documentation/IdStringProvider.cs
  13. 2
      ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs
  14. 5
      ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
  15. 2
      ICSharpCode.Decompiler/IL/Instructions.tt
  16. 1
      ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs
  17. 6
      ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs
  18. 2
      ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs
  19. 2
      ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs
  20. 7
      ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs
  21. 2
      ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs
  22. 2
      ICSharpCode.Decompiler/Tests/Helpers/Tester.cs
  23. 2
      ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs
  24. 3
      ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs
  25. 4
      ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs
  26. 1
      ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs
  27. 4
      ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs
  28. 1
      ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs
  29. 1
      ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs
  30. 1
      ICSharpCode.Decompiler/Tests/TestTraceListener.cs
  31. 4
      ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs
  32. 1
      ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs
  33. 5
      ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs
  34. 24
      ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs
  35. 1
      ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs
  36. 123
      ICSharpCode.Decompiler/Util/7BitEncodedInts.cs
  37. 1
      ICSharpCode.Decompiler/Util/BitVector16.cs
  38. 131
      ICSharpCode.Decompiler/Util/ImmutableStack.cs
  39. 1
      ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs
  40. 3
      ILSpy.AddIn/ILSpyAddInPackage.cs
  41. 1
      ILSpy.AddIn/PkgCmdID.cs
  42. 3
      ILSpy.AddIn/Utils.cs
  43. 1
      ILSpy.BamlDecompiler/BamlResourceEntryNode.cs
  44. 4
      ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs
  45. 2
      ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs
  46. 2
      ILSpy.BamlDecompiler/CecilType.cs
  47. 2
      ILSpy.BamlDecompiler/CecilTypeResolver.cs
  48. 1
      ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs
  49. 1
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs
  50. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs
  51. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs
  52. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs
  53. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs
  54. 1
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs
  55. 1
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs
  56. 11
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs
  57. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs
  58. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs
  59. 4
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs
  60. 2
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs
  61. 2
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs
  62. 2
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs
  63. 2
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs
  64. 2
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs
  65. 3
      ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs
  66. 6
      ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs
  67. 7
      ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs
  68. 8
      ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs
  69. 8
      ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs
  70. 8
      ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs
  71. 8
      ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs
  72. 1
      ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs
  73. 1
      ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs
  74. 12
      ILSpy.BamlDecompiler/Tests/TestRunner.cs
  75. 1
      ILSpy/AnalyzerTreeView.cs
  76. 1
      ILSpy/AssemblyListManager.cs
  77. 1
      ILSpy/AvalonEdit/TextMarkerService.cs
  78. 1
      ILSpy/Commands/BrowseBackCommand.cs
  79. 1
      ILSpy/Commands/BrowseForwardCommand.cs
  80. 1
      ILSpy/Commands/CheckForUpdatesCommand.cs
  81. 1
      ILSpy/Commands/ExitCommand.cs
  82. 1
      ILSpy/Commands/OpenCommand.cs
  83. 1
      ILSpy/Commands/OpenFromGacCommand.cs
  84. 1
      ILSpy/Commands/OpenListCommand.cs
  85. 1
      ILSpy/Commands/RefreshCommand.cs
  86. 1
      ILSpy/Commands/SaveCommand.cs
  87. 5
      ILSpy/Commands/ShowDebugSteps.cs
  88. 1
      ILSpy/ContextMenuEntry.cs
  89. 1
      ILSpy/Controls/ResourceObjectTable.xaml.cs
  90. 1
      ILSpy/Controls/ResourceStringTable.xaml.cs
  91. 3
      ILSpy/CreateListDialog.xaml.cs
  92. 10
      ILSpy/DebugSteps.xaml.cs
  93. 2
      ILSpy/DecompilationOptions.cs
  94. 1
      ILSpy/Fusion.cs
  95. 1
      ILSpy/ILSpySettings.cs
  96. 1
      ILSpy/ILSpyTraceListener.cs
  97. 1
      ILSpy/IPane.cs
  98. 1
      ILSpy/Images/AccessOverlayIcon.cs
  99. 1
      ILSpy/Images/MemberIcon.cs
  100. 1
      ILSpy/Images/TypeIcon.cs
  101. Some files were not shown because too many files have changed in this diff Show More

47
ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs

@ -1,47 +0,0 @@ @@ -1,47 +0,0 @@
//
// Annotations.cs
//
// Author:
// Luís Reis <luiscubal@gmail.com>
//
// Copyright (c) 2013 Luís Reis
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
namespace ICSharpCode.NRefactory.CSharp
{
public static class AnnotationNames
{
//Used const instead of readonly to allow values to be used in switch cases.
public const string AssertionMethodAttribute = "JetBrains.Annotations.AssertionMethodAttribute";
public const string AssertionConditionAttribute = "JetBrains.Annotations.AssertionConditionAttribute";
public const string AssertionConditionTypeAttribute = "JetBrains.Annotations.AssertionConditionType";
public const string AssertionConditionTypeIsTrue = "JetBrains.Annotations.AssertionConditionType.IS_TRUE";
public const string AssertionConditionTypeIsFalse = "JetBrains.Annotations.AssertionConditionType.IS_FALSE";
public const string AssertionConditionTypeIsNull = "JetBrains.Annotations.AssertionConditionType.IS_NULL";
public const string AssertionConditionTypeIsNotNull = "JetBrains.Annotations.AssertionConditionType.IS_NOT_NULL";
public const string NotNullAttribute = "JetBrains.Annotations.NotNullAttribute";
public const string CanBeNullAttribute = "JetBrains.Annotations.CanBeNullAttribute";
}
}

2
ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs

@ -26,7 +26,7 @@ using ICSharpCode.Decompiler.CSharp.Syntax; @@ -26,7 +26,7 @@ using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.CSharp.TypeSystem;
using ICSharpCode.Decompiler.Semantics;
namespace ICSharpCode.NRefactory.CSharp.Analysis
namespace ICSharpCode.Decompiler.CSharp.Analysis
{
/// <summary>
/// Represents a node in the control flow graph of a C# method.

159
ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs

@ -1,159 +0,0 @@ @@ -1,159 +0,0 @@
//
// LovalVariableDeclarationSpace.cs
//
// Author:
// Simon Lindgren <simon.n.lindgren@gmail.com>
//
// Copyright (c) 2013 Simon Lindgren
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System.Collections.Generic;
using System.Linq;
using System;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.Util;
namespace ICSharpCode.NRefactory.CSharp.Analysis
{
/// <summary>
/// Represents a declaration space. (§3.3)
/// </summary>
public class LocalDeclarationSpace
{
/// <summary>
/// Maps from variable name to the declarations in this declaration space.
/// </summary>
/// <remarks>
/// This maps from variable name
/// </remarks>
MultiDictionary<string, AstNode> declarations = new MultiDictionary<string, AstNode> ();
public LocalDeclarationSpace()
{
Children = new List<LocalDeclarationSpace> ();
}
/// <summary>
/// The child declaration spaces.
/// </summary>
public IList<LocalDeclarationSpace> Children {
get;
private set;
}
/// <summary>
/// The parent declaration space.
/// </summary>
/// <value>The parent.</value>
public LocalDeclarationSpace Parent {
get;
private set;
}
/// <summary>
/// The names declared in this declaration space, excluding child spaces.
/// </summary>
/// <value>The declared names.</value>
public ICollection<string> DeclaredNames {
get {
return declarations.Keys;
}
}
/// <summary>
/// Get all nodes declaring the name specified in <paramref name="name"/>.
/// </summary>
/// <returns>The declaring nodes.</returns>
/// <param name="name">The declaration name.</param>
public IEnumerable<AstNode> GetNameDeclarations(string name)
{
return declarations [name].Concat(Children.SelectMany(child => child.GetNameDeclarations(name)));
}
/// <summary>
/// Adds a child declaration space.
/// </summary>
/// <param name="child">The <see cref="LocalDeclarationSpace"/> to add.</param>
public void AddChildSpace(LocalDeclarationSpace child)
{
if (child == null)
throw new ArgumentNullException("child");
if (Children.Contains(child))
throw new InvalidOperationException("the child was already added");
Children.Add(child);
child.Parent = this;
}
/// <summary>
/// Adds a new declaration to the declaration space.
/// </summary>
/// <param name="name">The name of the declared variable.</param>
/// <param name="node">A node associated with the declaration.</param>
public void AddDeclaration(string name, AstNode node)
{
if (name == null)
throw new ArgumentNullException("name");
if (node == null)
throw new ArgumentNullException("node");
declarations.Add(name, node);
}
/// <summary>
/// Determines if the name exists in the this declaration space.
/// </summary>
/// <returns><c>true</c>, if the name specified in <paramref name="name"/> is used in this variable declaration space, <c>false</c> otherwise.</returns>
/// <param name="name">The name to look for.</param>
/// <param name="includeChildren">When <c>true</c>, child declaration spaces are included in the search.</param>
public bool ContainsName(string name, bool includeChildren)
{
if (name == null)
throw new ArgumentNullException("name");
if (declarations.Keys.Contains(name))
return true;
return includeChildren && Children.Any(child => child.ContainsName(name, true));
}
/// <summary>
/// Determines whether the name specified in <paramref name="name"/> is used in surrouding code.
/// </summary>
/// <returns><c>true</c> if the name is used, <c>false</c> otherwise.</returns>
/// <param name="name">The name to check.</param>
/// <remarks>
/// Contrary to <see cref="ContainsName"/>, this method also checks parent declaration spaces
/// for name conflicts. Typically, this will be the right method to use when determining if a name can be used.
/// </remarks>
public bool IsNameUsed(string name)
{
if (name == null)
throw new ArgumentNullException("name");
return IsNameUsedBySelfOrParent(name) || Children.Any(child => child.ContainsName(name, true));
}
bool IsNameUsedBySelfOrParent(string name)
{
if (declarations.Keys.Contains(name))
return true;
return Parent != null && Parent.IsNameUsedBySelfOrParent(name);
}
}
}

139
ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs

@ -1,139 +0,0 @@ @@ -1,139 +0,0 @@
//
// LocalDeclarationSpaceVisitor.cs
//
// Author:
// Simon Lindgren <simon.n.lindgren@gmail.com>
//
// Copyright (c) 2013 Simon Lindgren
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
using System;
using System.Collections.Generic;
using ICSharpCode.Decompiler.CSharp.Syntax;
namespace ICSharpCode.NRefactory.CSharp.Analysis
{
public class LocalDeclarationSpaceVisitor : DepthFirstAstVisitor
{
LocalDeclarationSpace currentDeclarationSpace;
Dictionary<AstNode, LocalDeclarationSpace> nodeDeclarationSpaces = new Dictionary<AstNode, LocalDeclarationSpace>();
public LocalDeclarationSpace GetDeclarationSpace(AstNode node)
{
if (node == null)
throw new ArgumentNullException("node");
while (node != null) {
LocalDeclarationSpace declarationSpace;
if (nodeDeclarationSpaces.TryGetValue(node, out declarationSpace))
return declarationSpace;
node = node.Parent;
}
return null;
}
#region Visitor
void AddDeclaration(string name, AstNode node)
{
if (currentDeclarationSpace != null)
currentDeclarationSpace.AddDeclaration(name, node);
}
public override void VisitVariableInitializer(VariableInitializer variableInitializer)
{
AddDeclaration(variableInitializer.Name, variableInitializer);
base.VisitVariableInitializer(variableInitializer);
}
public override void VisitParameterDeclaration(ParameterDeclaration parameterDeclaration)
{
AddDeclaration(parameterDeclaration.Name, parameterDeclaration);
base.VisitParameterDeclaration(parameterDeclaration);
}
void VisitNewDeclarationSpace(AstNode node)
{
var oldDeclarationSpace = currentDeclarationSpace;
currentDeclarationSpace = new LocalDeclarationSpace();
if (oldDeclarationSpace != null)
oldDeclarationSpace.AddChildSpace(currentDeclarationSpace);
VisitChildren(node);
nodeDeclarationSpaces.Add(node, currentDeclarationSpace);
currentDeclarationSpace = oldDeclarationSpace;
}
#region Declaration space creating nodes
public override void VisitMethodDeclaration(MethodDeclaration methodDeclaration)
{
VisitNewDeclarationSpace(methodDeclaration);
}
public override void VisitBlockStatement(BlockStatement blockStatement)
{
VisitNewDeclarationSpace(blockStatement);
}
public override void VisitSwitchStatement(SwitchStatement switchStatement)
{
VisitNewDeclarationSpace(switchStatement);
}
public override void VisitForeachStatement(ForeachStatement foreachStatement)
{
AddDeclaration(foreachStatement.VariableName, foreachStatement);
VisitNewDeclarationSpace(foreachStatement);
}
public override void VisitForStatement(ForStatement forStatement)
{
VisitNewDeclarationSpace(forStatement);
}
public override void VisitUsingStatement(UsingStatement usingStatement)
{
VisitNewDeclarationSpace(usingStatement);
}
public override void VisitLambdaExpression(LambdaExpression lambdaExpression)
{
VisitNewDeclarationSpace(lambdaExpression);
}
public override void VisitAnonymousMethodExpression(AnonymousMethodExpression anonymousMethodExpression)
{
VisitNewDeclarationSpace(anonymousMethodExpression);
}
public override void VisitEventDeclaration(EventDeclaration eventDeclaration)
{
AddDeclaration(eventDeclaration.Name, eventDeclaration);
}
public override void VisitCustomEventDeclaration(CustomEventDeclaration eventDeclaration)
{
VisitNewDeclarationSpace(eventDeclaration);
}
#endregion
#endregion
}
}

2
ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs

@ -26,7 +26,7 @@ using ICSharpCode.Decompiler.CSharp.TypeSystem; @@ -26,7 +26,7 @@ using ICSharpCode.Decompiler.CSharp.TypeSystem;
using ICSharpCode.Decompiler.Semantics;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
namespace ICSharpCode.NRefactory.CSharp.Analysis
namespace ICSharpCode.Decompiler.CSharp.Analysis
{
/// <summary>
/// Represents the definite assignment status of a variable at a specific location.

1
ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs

@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.Decompiler.CSharp.Syntax;

2
ICSharpCode.Decompiler/CSharp/Syntax/Role.cs

@ -33,7 +33,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -33,7 +33,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
readonly uint index;
[CLSCompliant(false)]
public uint Index {
get { return index; }
}
@ -55,7 +54,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -55,7 +54,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
/// <summary>
/// Gets the role with the specified index.
/// </summary>
[CLSCompliant(false)]
public static Role GetByIndex(uint index)
{
return roles[index];

2
ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs

@ -24,7 +24,7 @@ using ICSharpCode.Decompiler.CSharp.Syntax; @@ -24,7 +24,7 @@ using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching;
using ICSharpCode.Decompiler.CSharp.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp.Analysis;
using ICSharpCode.Decompiler.CSharp.Analysis;
using Mono.Cecil;
namespace ICSharpCode.Decompiler.CSharp.Transforms

2
ICSharpCode.Decompiler/CecilExtensions.cs

@ -211,7 +211,7 @@ namespace ICSharpCode.Decompiler @@ -211,7 +211,7 @@ namespace ICSharpCode.Decompiler
return null;
}
[Obsolete("throwing exceptions is considered a bug")]
//[Obsolete("throwing exceptions is considered a bug")]
public static TypeDefinition ResolveOrThrow(this TypeReference typeReference)
{
var resolved = typeReference.Resolve();

2
ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs

@ -21,7 +21,7 @@ using System.Linq; @@ -21,7 +21,7 @@ using System.Linq;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
namespace ICSharpCode.NRefactory.Documentation
namespace ICSharpCode.Decompiler.Documentation
{
/// <summary>
/// A type reference of the form 'Some.Namespace.TopLevelType.NestedType`n'.

2
ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs

@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
using System;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.NRefactory.Documentation
namespace ICSharpCode.Decompiler.Documentation
{
[Serializable]
class IdStringMemberReference : IMemberReference

2
ICSharpCode.Decompiler/Documentation/IdStringProvider.cs

@ -22,7 +22,7 @@ using System.Text; @@ -22,7 +22,7 @@ using System.Text;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem.Implementation;
namespace ICSharpCode.NRefactory.Documentation
namespace ICSharpCode.Decompiler.Documentation
{
/// <summary>
/// Provides ID strings for entities. (C# 4.0 spec, §A.3.1)

2
ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs

@ -24,7 +24,7 @@ using System.Runtime.Serialization; @@ -24,7 +24,7 @@ using System.Runtime.Serialization;
using System.Text;
using System.Xml;
namespace ICSharpCode.NRefactory.Documentation
namespace ICSharpCode.Decompiler.Documentation
{
/// <summary>
/// Provides documentation from an .xml file (as generated by the Microsoft C# compiler).

5
ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj

@ -68,10 +68,7 @@ @@ -68,10 +68,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="CSharp\Analysis\AnnotationNames.cs" />
<Compile Include="CSharp\Analysis\ControlFlow.cs" />
<Compile Include="CSharp\Analysis\DeclarationSpace\LocalDeclarationSpace.cs" />
<Compile Include="CSharp\Analysis\DeclarationSpace\LocalDeclarationSpaceVisitor.cs" />
<Compile Include="CSharp\Analysis\DefiniteAssignmentAnalysis.cs" />
<Compile Include="CSharp\Annotations.cs" />
<Compile Include="CSharp\Syntax\AstNode.cs" />
@ -504,7 +501,6 @@ @@ -504,7 +501,6 @@
<Compile Include="TypeSystem\TypesHierarchyHelpers.cs" />
<Compile Include="TypeSystem\TypeVisitor.cs" />
<Compile Include="TypeSystem\VarArgInstanceMethod.cs" />
<Compile Include="Util\7BitEncodedInts.cs" />
<Compile Include="Util\BitVector16.cs" />
<Compile Include="Util\BusyManager.cs" />
<Compile Include="Util\CacheManager.cs" />
@ -514,7 +510,6 @@ @@ -514,7 +510,6 @@
<Compile Include="Util\CSharpPrimitiveCast.cs" />
<Compile Include="Util\EmptyList.cs" />
<Compile Include="Util\ExtensionMethods.cs" />
<Compile Include="Util\ImmutableStack.cs" />
<Compile Include="Util\Interval.cs" />
<Compile Include="Util\LazyInit.cs" />
<Compile Include="Util\LongSet.cs" />

2
ICSharpCode.Decompiler/IL/Instructions.tt

@ -215,7 +215,7 @@ using System; @@ -215,7 +215,7 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.NRefactory.TypeSystem;
using ICSharpCode.Decompiler.TypeSystem;
namespace ICSharpCode.Decompiler.IL
{

1
ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.CodeDom.Compiler;
using System.IO;
using System.Linq;

6
ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using NUnit.Framework;
namespace ICSharpCode.Decompiler.Tests.CustomAttributes
{

2
ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs

@ -25,10 +25,8 @@ using System.Text; @@ -25,10 +25,8 @@ using System.Text;
using ICSharpCode.Decompiler.Tests.Helpers;
using Microsoft.CSharp;
using Mono.Cecil;
using NUnit.Framework;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.Decompiler.Tests
{

2
ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs

@ -1,8 +1,6 @@ @@ -1,8 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using DiffLib;
using NUnit.Framework;

7
ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs

@ -1,9 +1,4 @@ @@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.Decompiler.CSharp.Transforms;
namespace ICSharpCode.Decompiler.Tests.Helpers

2
ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs

@ -16,9 +16,7 @@ @@ -16,9 +16,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.IO;
using System.Linq;
using Microsoft.Win32;
namespace ICSharpCode.Decompiler.Tests.Helpers

2
ICSharpCode.Decompiler/Tests/Helpers/Tester.cs

@ -29,10 +29,8 @@ using ICSharpCode.Decompiler.CSharp; @@ -29,10 +29,8 @@ using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.Decompiler.CSharp.OutputVisitor;
using ICSharpCode.Decompiler.CSharp.Transforms;
using ICSharpCode.Decompiler.TypeSystem;
using ICSharpCode.NRefactory.CSharp;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.Text;
using Microsoft.CSharp;
using Mono.Cecil;
using NUnit.Framework;

2
ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs

@ -17,10 +17,8 @@ @@ -17,10 +17,8 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Reflection;
using ICSharpCode.Decompiler.IL;
using ICSharpCode.Decompiler.TypeSystem;
using Mono.Cecil;

3
ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs

@ -18,12 +18,9 @@ @@ -18,12 +18,9 @@
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using ICSharpCode.Decompiler.Tests.Helpers;
using NUnit.Framework;

4
ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs

@ -1,11 +1,7 @@ @@ -1,11 +1,7 @@
#define PRINT
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness
{

1
ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs

@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
class ControlFlow
{

4
ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs

@ -1,8 +1,4 @@ @@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PropertiesAndEvents
{

1
ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{

1
ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs

@ -20,7 +20,6 @@ @@ -20,7 +20,6 @@
// csc ShortCircuit.cs /t:Library && ildasm /text ShortCircuit.dll >ShortCircuit.il
// csc ShortCircuit.cs /t:Library /o /out:ShortCircuit.opt.dll && ildasm /text ShortCircuit.opt.dll >ShortCircuit.opt.il
using System;
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
{

1
ICSharpCode.Decompiler/Tests/TestTraceListener.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Diagnostics;
using NUnit.Core;
using NUnit.Framework;

4
ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs

@ -16,11 +16,7 @@ @@ -16,11 +16,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Diagnostics;
using ICSharpCode.Decompiler.IL;
using NUnit.Framework;
using ICSharpCode.Decompiler.Tests.Helpers;
using ICSharpCode.Decompiler.Util;
namespace ICSharpCode.Decompiler.Tests.Util

1
ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Immutable;
using System.Linq;
using ICSharpCode.Decompiler.Util;

5
ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs

@ -49,9 +49,9 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -49,9 +49,9 @@ namespace ICSharpCode.Decompiler.TypeSystem
switch (backend) {
case AssemblyLoaderBackend.Auto:
case AssemblyLoaderBackend.Cecil:
return (AssemblyLoader)Assembly.Load ("ICSharpCode.NRefactory.Cecil").CreateInstance ("ICSharpCode.NRefactory.TypeSystem.CecilLoader");
return (AssemblyLoader)Assembly.Load ("ICSharpCode.Decompiler.Cecil").CreateInstance ("ICSharpCode.Decompiler.TypeSystem.CecilLoader");
case AssemblyLoaderBackend.IKVM:
return (AssemblyLoader)Assembly.Load ("ICSharpCode.NRefactory.IKVM").CreateInstance ("ICSharpCode.NRefactory.TypeSystem.IkvmLoader");
return (AssemblyLoader)Assembly.Load ("ICSharpCode.Decompiler.IKVM").CreateInstance ("ICSharpCode.Decompiler.TypeSystem.IkvmLoader");
default:
throw new ArgumentOutOfRangeException ();
}
@ -67,7 +67,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -67,7 +67,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// </summary>
public CancellationToken CancellationToken { get; set; }
[CLSCompliant(false)]
protected InterningProvider interningProvider = new SimpleInterningProvider();
/// <summary>

24
ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs

@ -73,7 +73,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -73,7 +73,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// Warning: if delay-loading is used and the type system is accessed by multiple threads,
/// the callback may be invoked concurrently on multiple threads.
/// </remarks>
[CLSCompliant(false)]
public Action<IUnresolvedEntity, MemberReference> OnEntityLoaded { get; set; }
/// <summary>
@ -146,7 +145,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -146,7 +145,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// Loads the assembly definition into a project content.
/// </summary>
/// <returns>Unresolved type system representing the assembly</returns>
[CLSCompliant(false)]
public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition)
{
if (assemblyDefinition == null)
@ -158,7 +156,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -158,7 +156,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// Loads the module definition into a project content.
/// </summary>
/// <returns>Unresolved type system representing the assembly</returns>
[CLSCompliant(false)]
public IUnresolvedAssembly LoadModule(ModuleDefinition moduleDefinition)
{
if (moduleDefinition == null)
@ -249,7 +246,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -249,7 +246,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// This causes ReadTypeReference() to use <see cref="DefaultAssemblyReference.CurrentAssembly"/> for references
/// in that module.
/// </summary>
[CLSCompliant(false)]
public void SetCurrentModule(ModuleDefinition module)
{
this.currentModule = module;
@ -260,7 +256,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -260,7 +256,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// </summary>
/// <param name="typeDefinition">The Cecil TypeDefinition.</param>
/// <returns>ITypeDefinition representing the Cecil type.</returns>
[CLSCompliant(false)]
public IUnresolvedTypeDefinition LoadType(TypeDefinition typeDefinition)
{
if (typeDefinition == null)
@ -314,7 +309,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -314,7 +309,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// a type system type reference.</param>
/// <param name="typeAttributes">Attributes associated with the Cecil type reference.
/// This is used to support the 'dynamic' type.</param>
[CLSCompliant(false)]
public ITypeReference ReadTypeReference(TypeReference type, ICustomAttributeProvider typeAttributes = null)
{
int typeIndex = 0;
@ -785,7 +779,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -785,7 +779,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
}
}
[CLSCompliant(false)]
public IUnresolvedAttribute ReadAttribute(CustomAttribute attribute)
{
if (attribute == null)
@ -808,7 +801,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -808,7 +801,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
/// <summary>
/// Reads a security declaration.
/// </summary>
[CLSCompliant(false)]
public IList<IUnresolvedAttribute> ReadSecurityDeclaration(SecurityDeclaration secDecl)
{
if (secDecl == null)
@ -1309,7 +1301,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1309,7 +1301,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
#endregion
#region Read Method
[CLSCompliant(false)]
public IUnresolvedMethod ReadMethod(MethodDefinition method, IUnresolvedTypeDefinition parentType, SymbolKind methodType = SymbolKind.Method)
{
return ReadMethod(method, parentType, methodType, null);
@ -1442,7 +1433,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1442,7 +1433,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
#endregion
#region Read Parameter
[CLSCompliant(false)]
public IUnresolvedParameter ReadParameter(ParameterDefinition parameter)
{
if (parameter == null)
@ -1521,7 +1511,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1521,7 +1511,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
return new decimal((int)ctorArgs[4], (int)ctorArgs[3], (int)ctorArgs[2], (byte)ctorArgs[1] != 0, (byte)ctorArgs[0]);
}
[CLSCompliant(false)]
public IUnresolvedField ReadField(FieldDefinition field, IUnresolvedTypeDefinition parentType)
{
if (field == null)
@ -1625,7 +1614,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1625,7 +1614,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
return left;
}
[CLSCompliant(false)]
public IUnresolvedProperty ReadProperty(PropertyDefinition property, IUnresolvedTypeDefinition parentType, SymbolKind propertyType = SymbolKind.Property)
{
if (property == null)
@ -1666,7 +1654,6 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1666,7 +1654,6 @@ namespace ICSharpCode.Decompiler.TypeSystem
#endregion
#region Read Event
[CLSCompliant(false)]
public IUnresolvedEvent ReadEvent(EventDefinition ev, IUnresolvedTypeDefinition parentType)
{
if (ev == null)
@ -1744,13 +1731,12 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1744,13 +1731,12 @@ namespace ICSharpCode.Decompiler.TypeSystem
return result as T;
}
[CLSCompliant(false)]
public AssemblyDefinition GetCecilObject (IUnresolvedAssembly content)
{
return InternalGetCecilObject<AssemblyDefinition> (content);
}
[CLSCompliant(false)]
public TypeDefinition GetCecilObject (IUnresolvedTypeDefinition type)
{
if (type == null)
@ -1758,25 +1744,25 @@ namespace ICSharpCode.Decompiler.TypeSystem @@ -1758,25 +1744,25 @@ namespace ICSharpCode.Decompiler.TypeSystem
return InternalGetCecilObject<TypeDefinition> (type);
}
[CLSCompliant(false)]
public MethodDefinition GetCecilObject (IUnresolvedMethod method)
{
return InternalGetCecilObject<MethodDefinition> (method);
}
[CLSCompliant(false)]
public FieldDefinition GetCecilObject (IUnresolvedField field)
{
return InternalGetCecilObject<FieldDefinition> (field);
}
[CLSCompliant(false)]
public EventDefinition GetCecilObject (IUnresolvedEvent evt)
{
return InternalGetCecilObject<EventDefinition> (evt);
}
[CLSCompliant(false)]
public PropertyDefinition GetCecilObject (IUnresolvedProperty property)
{
return InternalGetCecilObject<PropertyDefinition> (property);

1
ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs

@ -22,7 +22,6 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation @@ -22,7 +22,6 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation
{
public abstract class TypeWithElementType : AbstractType
{
[CLSCompliant(false)]
protected IType elementType;
protected TypeWithElementType(IType elementType)

123
ICSharpCode.Decompiler/Util/7BitEncodedInts.cs

@ -1,123 +0,0 @@ @@ -1,123 +0,0 @@
// Copyright (c) 2011 Daniel Grunwald
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.IO;
namespace ICSharpCode.Decompiler.Util
{
/// <summary>
/// A binary reader that can read the output of BinaryWriterWith7BitEncodedInts.
/// </summary>
public sealed class BinaryReaderWith7BitEncodedInts : BinaryReader
{
public BinaryReaderWith7BitEncodedInts(Stream stream) : base(stream)
{
}
public override short ReadInt16()
{
return unchecked((short)(ushort)base.Read7BitEncodedInt());
}
[CLSCompliant(false)]
public override ushort ReadUInt16()
{
return unchecked((ushort)base.Read7BitEncodedInt());
}
public override int ReadInt32()
{
return base.Read7BitEncodedInt();
}
[CLSCompliant(false)]
public override uint ReadUInt32()
{
return unchecked((uint)base.Read7BitEncodedInt());
}
public override long ReadInt64()
{
return unchecked((long)this.ReadUInt64());
}
[CLSCompliant(false)]
public override ulong ReadUInt64()
{
ulong num = 0;
int shift = 0;
while (shift < 64) {
byte b = this.ReadByte();
num |= (ulong)(b & 127) << shift;
shift += 7;
if ((b & 128) == 0) {
return num;
}
}
throw new FormatException("Invalid 7-bit int64");
}
}
/// <summary>
/// A binary writer that encodes all integers as 7-bit-encoded-ints.
/// </summary>
public sealed class BinaryWriterWith7BitEncodedInts : BinaryWriter
{
public BinaryWriterWith7BitEncodedInts(Stream stream) : base(stream)
{
}
public override void Write(short value)
{
base.Write7BitEncodedInt(unchecked((ushort)value));
}
[CLSCompliant(false)]
public override void Write(ushort value)
{
base.Write7BitEncodedInt(value);
}
public override void Write(int value)
{
base.Write7BitEncodedInt(value);
}
[CLSCompliant(false)]
public override void Write(uint value)
{
base.Write7BitEncodedInt(unchecked((int)value));
}
public override void Write(long value)
{
this.Write(unchecked((ulong)value));
}
[CLSCompliant(false)]
public override void Write(ulong value)
{
while (value >= 128) {
this.Write(unchecked((byte)(value | 128u)));
value >>= 7;
}
this.Write(unchecked((byte)value));
}
}
}

1
ICSharpCode.Decompiler/Util/BitVector16.cs

@ -25,7 +25,6 @@ namespace ICSharpCode.Decompiler.Util @@ -25,7 +25,6 @@ namespace ICSharpCode.Decompiler.Util
/// Holds 16 boolean values.
/// </summary>
[Serializable]
[CLSCompliant(false)]
public struct BitVector16 : IEquatable<BitVector16>
{
ushort data;

131
ICSharpCode.Decompiler/Util/ImmutableStack.cs

@ -1,131 +0,0 @@ @@ -1,131 +0,0 @@
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
// software and associated documentation files (the "Software"), to deal in the Software
// without restriction, including without limitation the rights to use, copy, modify, merge,
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all copies or
// substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Text;
namespace ICSharpCode.Decompiler.Util
{
/// <summary>
/// An immutable stack.
///
/// Using 'foreach' on the stack will return the items from top to bottom (in the order they would be popped).
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")]
[Serializable]
public sealed class ImmutableStack<T> : IEnumerable<T>
{
/// <summary>
/// Gets the empty stack instance.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "ImmutableStack is immutable")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")]
public static readonly ImmutableStack<T> Empty = new ImmutableStack<T>();
readonly T value;
readonly ImmutableStack<T> next;
private ImmutableStack()
{
}
private ImmutableStack(T value, ImmutableStack<T> next)
{
this.value = value;
this.next = next;
}
/// <summary>
/// Pushes an item on the stack. This does not modify the stack itself, but returns a new
/// one with the value pushed.
/// </summary>
public ImmutableStack<T> Push(T item)
{
return new ImmutableStack<T>(item, this);
}
/// <summary>
/// Gets the item on the top of the stack.
/// </summary>
/// <exception cref="InvalidOperationException">The stack is empty.</exception>
public T Peek()
{
if (IsEmpty)
throw new InvalidOperationException("Operation not valid on empty stack.");
return value;
}
/// <summary>
/// Gets the item on the top of the stack.
/// Returns <c>default(T)</c> if the stack is empty.
/// </summary>
public T PeekOrDefault()
{
return value;
}
/// <summary>
/// Gets the stack with the top item removed.
/// </summary>
/// <exception cref="InvalidOperationException">The stack is empty.</exception>
public ImmutableStack<T> Pop()
{
if (IsEmpty)
throw new InvalidOperationException("Operation not valid on empty stack.");
return next;
}
/// <summary>
/// Gets if this stack is empty.
/// </summary>
public bool IsEmpty {
get { return next == null; }
}
/// <summary>
/// Gets an enumerator that iterates through the stack top-to-bottom.
/// </summary>
public IEnumerator<T> GetEnumerator()
{
ImmutableStack<T> t = this;
while (!t.IsEmpty) {
yield return t.value;
t = t.next;
}
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
/// <inheritdoc/>
public override string ToString()
{
StringBuilder b = new StringBuilder("[Stack");
foreach (T val in this) {
b.Append(' ');
b.Append(val);
}
b.Append(']');
return b.ToString();
}
}
}

1
ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs

@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Text;
using ICSharpCode.Decompiler.CSharp.Syntax;
using ICSharpCode.NRefactory.CSharp;
namespace ICSharpCode.ILSpy.AddIn
{

3
ILSpy.AddIn/ILSpyAddInPackage.cs

@ -3,12 +3,9 @@ using System.Diagnostics; @@ -3,12 +3,9 @@ using System.Diagnostics;
using System.Globalization;
using System.Runtime.InteropServices;
using System.ComponentModel.Design;
using Microsoft.Win32;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using Microsoft.VisualStudio.OLE.Interop;
using Microsoft.VisualStudio.Shell;
using System.Reflection;
using System.IO;
using Mono.Cecil;

1
ILSpy.AddIn/PkgCmdID.cs

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
// PkgCmdID.cs
// MUST match PkgCmdID.h
using System;
namespace ICSharpCode.ILSpy.AddIn
{

3
ILSpy.AddIn/Utils.cs

@ -1,10 +1,7 @@ @@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace ICSharpCode.ILSpy.AddIn
{

1
ILSpy.BamlDecompiler/BamlResourceEntryNode.cs

@ -5,7 +5,6 @@ using System; @@ -5,7 +5,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;

4
ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs

@ -2,15 +2,11 @@ @@ -2,15 +2,11 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using ICSharpCode.ILSpy.TreeNodes;
using ICSharpCode.ILSpy;
using System.Resources;
using System.Collections;
using System.Linq;
namespace ILSpy.BamlDecompiler
{

2
ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs

@ -2,9 +2,7 @@ @@ -2,9 +2,7 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Diagnostics;
using System.Linq;
using ICSharpCode.ILSpy;
using Mono.Cecil;
using Ricciolo.StylesExplorer.MarkupReflection;

2
ILSpy.BamlDecompiler/CecilType.cs

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Linq;
using ICSharpCode.ILSpy;
using Mono.Cecil;
using Ricciolo.StylesExplorer.MarkupReflection;

2
ILSpy.BamlDecompiler/CecilTypeResolver.cs

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Linq;
using ICSharpCode.ILSpy;
using Mono.Cecil;
using Ricciolo.StylesExplorer.MarkupReflection;

1
ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;

1
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs

@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
using System;
using System.IO;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

1
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
namespace Ricciolo.StylesExplorer.MarkupReflection

1
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs

@ -2,7 +2,6 @@ @@ -2,7 +2,6 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections;
using System.Collections.Generic;
namespace Ricciolo.StylesExplorer.MarkupReflection

11
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs

@ -1,18 +1,7 @@ @@ -1,18 +1,7 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Xml;
using System.Windows.Media;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

4
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs

@ -1,10 +1,6 @@ @@ -1,10 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Ricciolo.StylesExplorer.MarkupReflection

2
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs

@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Ricciolo.StylesExplorer.MarkupReflection

2
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs

@ -1,9 +1,7 @@ @@ -1,9 +1,7 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Ricciolo.StylesExplorer.MarkupReflection

2
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
namespace Ricciolo.StylesExplorer.MarkupReflection
{

2
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs

@ -2,9 +2,7 @@ @@ -2,9 +2,7 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.IO;

2
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs

@ -2,8 +2,6 @@ @@ -2,8 +2,6 @@
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Ricciolo.StylesExplorer.MarkupReflection

3
ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
// Copyright (c) Cristian Civera (cristian@aspitalia.com)
// This code is distributed under the MS-PL (for details please see \doc\MS-PL.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
namespace Ricciolo.StylesExplorer.MarkupReflection

6
ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs

@ -2,14 +2,8 @@ @@ -2,14 +2,8 @@
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ILSpy.BamlDecompiler.Tests.Cases
{

7
ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs

@ -1,9 +1,4 @@ @@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows;
using System.Windows.Controls;
namespace ILSpy.BamlDecompiler.Tests.Cases

8
ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs

@ -1,15 +1,7 @@ @@ -1,15 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ILSpy.BamlDecompiler.Tests.Cases
{

8
ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs

@ -1,15 +1,7 @@ @@ -1,15 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ILSpy.BamlDecompiler.Tests.Cases
{

8
ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs

@ -1,15 +1,7 @@ @@ -1,15 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ILSpy.BamlDecompiler.Tests.Cases
{

8
ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs

@ -1,15 +1,7 @@ @@ -1,15 +1,7 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
namespace ILSpy.BamlDecompiler.Tests.Cases
{

1
ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Windows;
using System.Windows.Controls.Primitives;

1
ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs

@ -1,6 +1,5 @@ @@ -1,6 +1,5 @@
#region Using directives
using System;
using System.Reflection;
using System.Runtime.InteropServices;

12
ILSpy.BamlDecompiler/Tests/TestRunner.cs

@ -1,18 +1,6 @@ @@ -1,18 +1,6 @@
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Resources;
using System.Xml.Linq;
using ICSharpCode.Decompiler.Tests.Helpers;
using ICSharpCode.ILSpy;
using Mono.Cecil;
using NUnit.Framework;
using Ricciolo.StylesExplorer.MarkupReflection;
namespace ILSpy.BamlDecompiler.Tests
{

1
ILSpy/AnalyzerTreeView.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;

1
ILSpy/AssemblyListManager.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections.ObjectModel;
using System.Linq;
using System.Xml.Linq;

1
ILSpy/AvalonEdit/TextMarkerService.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Media;

1
ILSpy/Commands/BrowseBackCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows.Input;
namespace ICSharpCode.ILSpy

1
ILSpy/Commands/BrowseForwardCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows.Input;
namespace ICSharpCode.ILSpy

1
ILSpy/Commands/CheckForUpdatesCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Commands/ExitCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Commands/OpenCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows.Input;
namespace ICSharpCode.ILSpy

1
ILSpy/Commands/OpenFromGacCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Commands/OpenListCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Commands/RefreshCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows.Input;
namespace ICSharpCode.ILSpy

1
ILSpy/Commands/SaveCommand.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Windows.Input;
namespace ICSharpCode.ILSpy

5
ILSpy/Commands/ShowDebugSteps.cs

@ -1,9 +1,4 @@ @@ -1,9 +1,4 @@
#if DEBUG
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ICSharpCode.ILSpy.Commands
{

1
ILSpy/ContextMenuEntry.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
using ICSharpCode.AvalonEdit;

1
ILSpy/Controls/ResourceObjectTable.xaml.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections;
using System.Text;
using System.Windows;

1
ILSpy/Controls/ResourceStringTable.xaml.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Collections;
using System.Text;
using System.Windows;

3
ILSpy/CreateListDialog.xaml.cs

@ -1,5 +1,4 @@ @@ -1,5 +1,4 @@
using System;
using System.Windows;
using System.Windows;
using System.Windows.Controls;
namespace ICSharpCode.ILSpy

10
ILSpy/DebugSteps.xaml.cs

@ -1,17 +1,7 @@ @@ -1,17 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using ICSharpCode.Decompiler.IL.Transforms;
namespace ICSharpCode.ILSpy

2
ILSpy/DecompilationOptions.cs

@ -16,10 +16,8 @@ @@ -16,10 +16,8 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
using System.Threading;
using ICSharpCode.Decompiler;
using ICSharpCode.Decompiler.CSharp;
using ICSharpCode.ILSpy.Options;
namespace ICSharpCode.ILSpy

1
ILSpy/Fusion.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Text;
namespace ICSharpCode.ILSpy

1
ILSpy/ILSpySettings.cs

@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
using System;
using System.IO;
using System.Text;
using System.Threading;
using System.Xml;
using System.Xml.Linq;

1
ILSpy/ILSpyTraceListener.cs

@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Threading;
using ICSharpCode.ILSpy.Controls;

1
ILSpy/IPane.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Images/AccessOverlayIcon.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Images/MemberIcon.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

1
ILSpy/Images/TypeIcon.cs

@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using System;
namespace ICSharpCode.ILSpy
{

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save