From 0524b4a353e6d663aae4ea4a7f835a3c56afd345 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 26 Nov 2016 16:28:01 +0100 Subject: [PATCH] Remove unused usings in solution; remove dead code; unify namespaces --- .../CSharp/Analysis/AnnotationNames.cs | 47 ------ .../CSharp/Analysis/ControlFlow.cs | 2 +- .../DeclarationSpace/LocalDeclarationSpace.cs | 159 ------------------ .../LocalDeclarationSpaceVisitor.cs | 139 --------------- .../Analysis/DefiniteAssignmentAnalysis.cs | 2 +- .../CSharp/Resolver/CSharpResolver.cs | 1 + ICSharpCode.Decompiler/CSharp/Syntax/Role.cs | 2 - .../Transforms/PatternStatementTransform.cs | 2 +- ICSharpCode.Decompiler/CecilExtensions.cs | 2 +- .../GetPotentiallyNestedClassTypeReference.cs | 2 +- .../Documentation/IdStringMemberReference.cs | 2 +- .../Documentation/IdStringProvider.cs | 2 +- .../Documentation/XmlDocumentationProvider.cs | 2 +- .../ICSharpCode.Decompiler.csproj | 5 - ICSharpCode.Decompiler/IL/Instructions.tt | 2 +- .../Tests/CorrectnessTestRunner.cs | 1 - .../CustomAttributes/CustomAttributeTests.cs | 6 +- .../Tests/DecompilerTestBase.cs | 2 - .../Tests/Helpers/CodeAssert.cs | 2 - .../Tests/Helpers/RemoveCompilerAttribute.cs | 7 +- .../Tests/Helpers/SdkUtility.cs | 2 - .../Tests/Helpers/Tester.cs | 2 - .../Tests/Helpers/TypeSystemHelper.cs | 2 - .../Tests/PrettyTestRunner.cs | 3 - .../TestCases/Correctness/ConditionalAttr.cs | 4 - .../TestCases/Correctness/ControlFlow.cs | 1 - .../Correctness/PropertiesAndEvents.cs | 4 - .../TestCases/Pretty/ExceptionHandling.cs | 1 - .../Tests/TestCases/Pretty/ShortCircuit.cs | 1 - .../Tests/TestTraceListener.cs | 1 - .../Tests/Util/IntervalTests.cs | 4 - .../Tests/Util/LongSetTests.cs | 1 - .../TypeSystem/AssemblyLoader.cs | 5 +- .../TypeSystem/CecilLoader.cs | 24 +-- .../Implementation/TypeWithElementType.cs | 1 - .../Util/7BitEncodedInts.cs | 123 -------------- ICSharpCode.Decompiler/Util/BitVector16.cs | 1 - ICSharpCode.Decompiler/Util/ImmutableStack.cs | 131 --------------- ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs | 1 - ILSpy.AddIn/ILSpyAddInPackage.cs | 3 - ILSpy.AddIn/PkgCmdID.cs | 1 - ILSpy.AddIn/Utils.cs | 3 - ILSpy.BamlDecompiler/BamlResourceEntryNode.cs | 1 - .../BamlResourceNodeFactory.cs | 4 - .../CecilDependencyPropertyDescriptor.cs | 2 - ILSpy.BamlDecompiler/CecilType.cs | 2 - ILSpy.BamlDecompiler/CecilTypeResolver.cs | 2 - .../Properties/AssemblyInfo.cs | 1 - .../BamlBinaryReader.cs | 1 - .../BamlRecordType.cs | 3 - .../IDependencyPropertyDescriptor.cs | 3 - .../IType.cs | 3 - .../ITypeResolver.cs | 3 - .../KeyMapping.cs | 1 - .../KnownInfo.cs | 1 - .../NodesCollection.cs | 11 -- .../PropertyDeclaration.cs | 3 - .../ResourceName.cs | 3 - .../XmlBamlElement.cs | 4 - .../XmlBamlNode.cs | 2 - .../XmlBamlProperty.cs | 2 - .../XmlBamlPropertyElement.cs | 2 - .../XmlBamlReader.cs | 2 - .../XmlBamlSimpleProperty.cs | 2 - .../XmlBamlText.cs | 3 - .../Tests/Cases/AttachedEvent.xaml.cs | 6 - .../Tests/Cases/CustomControl.cs | 7 +- .../Tests/Cases/MyControl.xaml.cs | 8 - .../Tests/Cases/Resources.xaml.cs | 8 - .../Tests/Cases/Simple.xaml.cs | 8 - .../Tests/Cases/SimpleNames.xaml.cs | 8 - .../Tests/Mocks/AvalonDock.cs | 1 - .../Tests/Properties/AssemblyInfo.cs | 1 - ILSpy.BamlDecompiler/Tests/TestRunner.cs | 12 -- ILSpy/AnalyzerTreeView.cs | 1 - ILSpy/AssemblyListManager.cs | 1 - ILSpy/AvalonEdit/TextMarkerService.cs | 1 - ILSpy/Commands/BrowseBackCommand.cs | 1 - ILSpy/Commands/BrowseForwardCommand.cs | 1 - ILSpy/Commands/CheckForUpdatesCommand.cs | 1 - ILSpy/Commands/ExitCommand.cs | 1 - ILSpy/Commands/OpenCommand.cs | 1 - ILSpy/Commands/OpenFromGacCommand.cs | 1 - ILSpy/Commands/OpenListCommand.cs | 1 - ILSpy/Commands/RefreshCommand.cs | 1 - ILSpy/Commands/SaveCommand.cs | 1 - ILSpy/Commands/ShowDebugSteps.cs | 5 - ILSpy/ContextMenuEntry.cs | 1 - ILSpy/Controls/ResourceObjectTable.xaml.cs | 1 - ILSpy/Controls/ResourceStringTable.xaml.cs | 1 - ILSpy/CreateListDialog.xaml.cs | 3 +- ILSpy/DebugSteps.xaml.cs | 10 -- ILSpy/DecompilationOptions.cs | 2 - ILSpy/Fusion.cs | 1 - ILSpy/ILSpySettings.cs | 1 - ILSpy/ILSpyTraceListener.cs | 1 - ILSpy/IPane.cs | 1 - ILSpy/Images/AccessOverlayIcon.cs | 1 - ILSpy/Images/MemberIcon.cs | 1 - ILSpy/Images/TypeIcon.cs | 1 - ILSpy/Languages/CSharpLanguage.cs | 6 - ILSpy/Languages/ILAstLanguage.cs | 3 +- ILSpy/Languages/ILLanguage.cs | 1 - ILSpy/Languages/IResourceFileHandler.cs | 1 - ILSpy/Languages/Language.cs | 4 - ILSpy/Languages/Languages.cs | 2 - ILSpy/Languages/TextTokenWriter.cs | 2 - ILSpy/Options/DecompilerSettingsPanel.xaml.cs | 2 - ILSpy/Options/DisplaySettings.cs | 1 - ILSpy/Properties/WPFAssemblyInfo.cs | 9 +- ILSpy/SearchPane.cs | 1 - ILSpy/SearchStrategies.cs | 2 - ILSpy/TextView/AvalonEditTextOutput.cs | 1 - ILSpy/TextView/DecompilerTextView.cs | 2 +- ILSpy/TextView/FoldingCommands.cs | 2 - .../Analyzer/AnalyzeContextMenuEntry.cs | 3 - .../AnalyzedAttributeAppliedToTreeNode.cs | 1 - .../Analyzer/AnalyzedEventAccessorTreeNode.cs | 1 - .../AnalyzedMethodOverridesTreeNode.cs | 1 - .../AnalyzedPropertyAccessorTreeNode.cs | 1 - .../Analyzer/AnalyzedTypeUsedByTreeNode.cs | 1 - .../Analyzer/AnalyzerEntityTreeNode.cs | 1 - .../Analyzer/AnalyzerSearchTreeNode.cs | 1 - ILSpy/TreeNodes/Analyzer/AnalyzerTreeNode.cs | 1 - ILSpy/TreeNodes/DerivedTypesEntryNode.cs | 1 - ILSpy/TreeNodes/DerivedTypesTreeNode.cs | 1 - ILSpy/TreeNodes/ILSpyTreeNode.cs | 1 - ILSpy/TreeNodes/IMemberTreeNode.cs | 1 - .../ResourceNodes/IResourceNodeFactory.cs | 1 - .../ImageListResourceEntryNode.cs | 4 - ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs | 5 - ILSpy/XmlDoc/AddXmlDocTransform.cs | 1 - ILSpy/XmlDoc/XmlDocLoader.cs | 2 +- SharpTreeView/Converters.cs | 3 - SharpTreeView/EditTextBox.cs | 5 - SharpTreeView/ExtensionMethods.cs | 3 - SharpTreeView/GeneralAdorner.cs | 4 - SharpTreeView/InsertMarker.cs | 4 - SharpTreeView/LinesRenderer.cs | 4 - SharpTreeView/Properties/AssemblyInfo.cs | 11 +- SharpTreeView/SharpGridView.cs | 4 - SharpTreeView/SharpTreeNode.cs | 4 - SharpTreeView/SharpTreeNodeCollection.cs | 2 - SharpTreeView/SharpTreeNodeView.cs | 5 - SharpTreeView/SharpTreeView.cs | 3 - SharpTreeView/SharpTreeViewItem.cs | 4 - SharpTreeView/TreeFlattener.cs | 3 - TestPlugin/ContextMenuCommand.cs | 2 - TestPlugin/CustomLanguage.cs | 3 - TestPlugin/CustomOptionPage.xaml.cs | 8 - TestPlugin/MainMenuCommand.cs | 1 - TestPlugin/Properties/AssemblyInfo.cs | 1 - 152 files changed, 32 insertions(+), 979 deletions(-) delete mode 100644 ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs delete mode 100644 ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs delete mode 100644 ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs delete mode 100644 ICSharpCode.Decompiler/Util/7BitEncodedInts.cs delete mode 100644 ICSharpCode.Decompiler/Util/ImmutableStack.cs diff --git a/ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs b/ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs deleted file mode 100644 index 5103bddce..000000000 --- a/ICSharpCode.Decompiler/CSharp/Analysis/AnnotationNames.cs +++ /dev/null @@ -1,47 +0,0 @@ -// -// Annotations.cs -// -// Author: -// Luís Reis -// -// 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"; - } -} - diff --git a/ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs b/ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs index f082493b6..e505e4bce 100644 --- a/ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs +++ b/ICSharpCode.Decompiler/CSharp/Analysis/ControlFlow.cs @@ -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 { /// /// Represents a node in the control flow graph of a C# method. diff --git a/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs b/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs deleted file mode 100644 index cbfef83d9..000000000 --- a/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpace.cs +++ /dev/null @@ -1,159 +0,0 @@ -// -// LovalVariableDeclarationSpace.cs -// -// Author: -// Simon Lindgren -// -// 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 -{ - /// - /// Represents a declaration space. (§3.3) - /// - public class LocalDeclarationSpace - { - /// - /// Maps from variable name to the declarations in this declaration space. - /// - /// - /// This maps from variable name - /// - MultiDictionary declarations = new MultiDictionary (); - - public LocalDeclarationSpace() - { - Children = new List (); - } - - /// - /// The child declaration spaces. - /// - public IList Children { - get; - private set; - } - - /// - /// The parent declaration space. - /// - /// The parent. - public LocalDeclarationSpace Parent { - get; - private set; - } - - /// - /// The names declared in this declaration space, excluding child spaces. - /// - /// The declared names. - public ICollection DeclaredNames { - get { - return declarations.Keys; - } - } - - /// - /// Get all nodes declaring the name specified in . - /// - /// The declaring nodes. - /// The declaration name. - public IEnumerable GetNameDeclarations(string name) - { - return declarations [name].Concat(Children.SelectMany(child => child.GetNameDeclarations(name))); - } - - /// - /// Adds a child declaration space. - /// - /// The to add. - 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; - } - - /// - /// Adds a new declaration to the declaration space. - /// - /// The name of the declared variable. - /// A node associated with the declaration. - 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); - } - - /// - /// Determines if the name exists in the this declaration space. - /// - /// true, if the name specified in is used in this variable declaration space, false otherwise. - /// The name to look for. - /// When true, child declaration spaces are included in the search. - 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)); - } - - /// - /// Determines whether the name specified in is used in surrouding code. - /// - /// true if the name is used, false otherwise. - /// The name to check. - /// - /// Contrary to , 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. - /// - 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); - } - } -} \ No newline at end of file diff --git a/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs b/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs deleted file mode 100644 index 9e573b959..000000000 --- a/ICSharpCode.Decompiler/CSharp/Analysis/DeclarationSpace/LocalDeclarationSpaceVisitor.cs +++ /dev/null @@ -1,139 +0,0 @@ -// -// LocalDeclarationSpaceVisitor.cs -// -// Author: -// Simon Lindgren -// -// 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 nodeDeclarationSpaces = new Dictionary(); - - 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 - } -} diff --git a/ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs b/ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs index b4cb74626..70ab770bb 100644 --- a/ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs +++ b/ICSharpCode.Decompiler/CSharp/Analysis/DefiniteAssignmentAnalysis.cs @@ -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 { /// /// Represents the definite assignment status of a variable at a specific location. diff --git a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs index 9e64ae0ad..62e3797da 100644 --- a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs +++ b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpResolver.cs @@ -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; diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Role.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Role.cs index 5d03a7d46..241198bd8 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Role.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Role.cs @@ -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 /// /// Gets the role with the specified index. /// - [CLSCompliant(false)] public static Role GetByIndex(uint index) { return roles[index]; diff --git a/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs b/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs index fb55b5b2e..48035868c 100644 --- a/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs +++ b/ICSharpCode.Decompiler/CSharp/Transforms/PatternStatementTransform.cs @@ -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 diff --git a/ICSharpCode.Decompiler/CecilExtensions.cs b/ICSharpCode.Decompiler/CecilExtensions.cs index 14accb955..a8293f56c 100644 --- a/ICSharpCode.Decompiler/CecilExtensions.cs +++ b/ICSharpCode.Decompiler/CecilExtensions.cs @@ -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(); diff --git a/ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs b/ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs index 86bafce76..8b4a9885e 100644 --- a/ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs +++ b/ICSharpCode.Decompiler/Documentation/GetPotentiallyNestedClassTypeReference.cs @@ -21,7 +21,7 @@ using System.Linq; using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem.Implementation; -namespace ICSharpCode.NRefactory.Documentation +namespace ICSharpCode.Decompiler.Documentation { /// /// A type reference of the form 'Some.Namespace.TopLevelType.NestedType`n'. diff --git a/ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs b/ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs index fb722dcbc..4ca902a8f 100644 --- a/ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs +++ b/ICSharpCode.Decompiler/Documentation/IdStringMemberReference.cs @@ -19,7 +19,7 @@ using System; using ICSharpCode.Decompiler.TypeSystem; -namespace ICSharpCode.NRefactory.Documentation +namespace ICSharpCode.Decompiler.Documentation { [Serializable] class IdStringMemberReference : IMemberReference diff --git a/ICSharpCode.Decompiler/Documentation/IdStringProvider.cs b/ICSharpCode.Decompiler/Documentation/IdStringProvider.cs index 415297ad6..0dae3b991 100644 --- a/ICSharpCode.Decompiler/Documentation/IdStringProvider.cs +++ b/ICSharpCode.Decompiler/Documentation/IdStringProvider.cs @@ -22,7 +22,7 @@ using System.Text; using ICSharpCode.Decompiler.TypeSystem; using ICSharpCode.Decompiler.TypeSystem.Implementation; -namespace ICSharpCode.NRefactory.Documentation +namespace ICSharpCode.Decompiler.Documentation { /// /// Provides ID strings for entities. (C# 4.0 spec, §A.3.1) diff --git a/ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs b/ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs index a71ceeeab..89285a320 100644 --- a/ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs +++ b/ICSharpCode.Decompiler/Documentation/XmlDocumentationProvider.cs @@ -24,7 +24,7 @@ using System.Runtime.Serialization; using System.Text; using System.Xml; -namespace ICSharpCode.NRefactory.Documentation +namespace ICSharpCode.Decompiler.Documentation { /// /// Provides documentation from an .xml file (as generated by the Microsoft C# compiler). diff --git a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj b/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj index abc762905..7be8b90b2 100644 --- a/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj +++ b/ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj @@ -68,10 +68,7 @@ - - - @@ -504,7 +501,6 @@ - @@ -514,7 +510,6 @@ - diff --git a/ICSharpCode.Decompiler/IL/Instructions.tt b/ICSharpCode.Decompiler/IL/Instructions.tt index 90d9ed8d5..07484c1da 100644 --- a/ICSharpCode.Decompiler/IL/Instructions.tt +++ b/ICSharpCode.Decompiler/IL/Instructions.tt @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs b/ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs index f0b6c563d..7c7032254 100644 --- a/ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs +++ b/ICSharpCode.Decompiler/Tests/CorrectnessTestRunner.cs @@ -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; diff --git a/ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs b/ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs index 146983d09..1df0bc92e 100644 --- a/ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs +++ b/ICSharpCode.Decompiler/Tests/CustomAttributes/CustomAttributeTests.cs @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs b/ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs index e42f3090f..27b1875a5 100644 --- a/ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs +++ b/ICSharpCode.Decompiler/Tests/DecompilerTestBase.cs @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs b/ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs index c6f6d9c1a..e03e3948c 100644 --- a/ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs +++ b/ICSharpCode.Decompiler/Tests/Helpers/CodeAssert.cs @@ -1,8 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; -using System.Text; using DiffLib; using NUnit.Framework; diff --git a/ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs b/ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs index 568d915cf..d0e5ebbd9 100644 --- a/ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs +++ b/ICSharpCode.Decompiler/Tests/Helpers/RemoveCompilerAttribute.cs @@ -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 diff --git a/ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs b/ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs index a240a9222..4ad1af0eb 100644 --- a/ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs +++ b/ICSharpCode.Decompiler/Tests/Helpers/SdkUtility.cs @@ -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 diff --git a/ICSharpCode.Decompiler/Tests/Helpers/Tester.cs b/ICSharpCode.Decompiler/Tests/Helpers/Tester.cs index cd184c4ff..452b20a84 100644 --- a/ICSharpCode.Decompiler/Tests/Helpers/Tester.cs +++ b/ICSharpCode.Decompiler/Tests/Helpers/Tester.cs @@ -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; diff --git a/ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs b/ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs index d9098a411..e39ee4163 100644 --- a/ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs +++ b/ICSharpCode.Decompiler/Tests/Helpers/TypeSystemHelper.cs @@ -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; diff --git a/ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs b/ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs index cfff155f2..41fc66c89 100644 --- a/ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs +++ b/ICSharpCode.Decompiler/Tests/PrettyTestRunner.cs @@ -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; diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs index 12aaefc97..873116fca 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ConditionalAttr.cs @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs index dd81e6443..0015fc119 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/ControlFlow.cs @@ -17,7 +17,6 @@ // DEALINGS IN THE SOFTWARE. using System; -using System.Collections.Generic; class ControlFlow { diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs index 0b833d681..9919edd3b 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Correctness/PropertiesAndEvents.cs @@ -1,8 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace PropertiesAndEvents { diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs index f6a264e8f..6872f913d 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ExceptionHandling.cs @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs index 4514aac73..89fc7a27c 100644 --- a/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs +++ b/ICSharpCode.Decompiler/Tests/TestCases/Pretty/ShortCircuit.cs @@ -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 { diff --git a/ICSharpCode.Decompiler/Tests/TestTraceListener.cs b/ICSharpCode.Decompiler/Tests/TestTraceListener.cs index 4be9efebd..bc1f83c3b 100644 --- a/ICSharpCode.Decompiler/Tests/TestTraceListener.cs +++ b/ICSharpCode.Decompiler/Tests/TestTraceListener.cs @@ -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; diff --git a/ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs b/ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs index 46336a006..b6fe013e9 100644 --- a/ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs +++ b/ICSharpCode.Decompiler/Tests/Util/IntervalTests.cs @@ -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 diff --git a/ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs b/ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs index 9409e561b..72e9add70 100644 --- a/ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs +++ b/ICSharpCode.Decompiler/Tests/Util/LongSetTests.cs @@ -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; diff --git a/ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs b/ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs index 642e3fc76..5076cb6cf 100644 --- a/ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs +++ b/ICSharpCode.Decompiler/TypeSystem/AssemblyLoader.cs @@ -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 /// public CancellationToken CancellationToken { get; set; } - [CLSCompliant(false)] protected InterningProvider interningProvider = new SimpleInterningProvider(); /// diff --git a/ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs b/ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs index 03e1c3dee..c25a8de96 100644 --- a/ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs +++ b/ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs @@ -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. /// - [CLSCompliant(false)] public Action OnEntityLoaded { get; set; } /// @@ -146,7 +145,6 @@ namespace ICSharpCode.Decompiler.TypeSystem /// Loads the assembly definition into a project content. /// /// Unresolved type system representing the assembly - [CLSCompliant(false)] public IUnresolvedAssembly LoadAssembly(AssemblyDefinition assemblyDefinition) { if (assemblyDefinition == null) @@ -158,7 +156,6 @@ namespace ICSharpCode.Decompiler.TypeSystem /// Loads the module definition into a project content. /// /// Unresolved type system representing the assembly - [CLSCompliant(false)] public IUnresolvedAssembly LoadModule(ModuleDefinition moduleDefinition) { if (moduleDefinition == null) @@ -249,7 +246,6 @@ namespace ICSharpCode.Decompiler.TypeSystem /// This causes ReadTypeReference() to use for references /// in that module. /// - [CLSCompliant(false)] public void SetCurrentModule(ModuleDefinition module) { this.currentModule = module; @@ -260,7 +256,6 @@ namespace ICSharpCode.Decompiler.TypeSystem /// /// The Cecil TypeDefinition. /// ITypeDefinition representing the Cecil type. - [CLSCompliant(false)] public IUnresolvedTypeDefinition LoadType(TypeDefinition typeDefinition) { if (typeDefinition == null) @@ -314,7 +309,6 @@ namespace ICSharpCode.Decompiler.TypeSystem /// a type system type reference. /// Attributes associated with the Cecil type reference. /// This is used to support the 'dynamic' type. - [CLSCompliant(false)] public ITypeReference ReadTypeReference(TypeReference type, ICustomAttributeProvider typeAttributes = null) { int typeIndex = 0; @@ -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 /// /// Reads a security declaration. /// - [CLSCompliant(false)] public IList ReadSecurityDeclaration(SecurityDeclaration secDecl) { if (secDecl == null) @@ -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 #endregion #region Read Parameter - [CLSCompliant(false)] public IUnresolvedParameter ReadParameter(ParameterDefinition parameter) { if (parameter == null) @@ -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 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 #endregion #region Read Event - [CLSCompliant(false)] public IUnresolvedEvent ReadEvent(EventDefinition ev, IUnresolvedTypeDefinition parentType) { if (ev == null) @@ -1744,13 +1731,12 @@ namespace ICSharpCode.Decompiler.TypeSystem return result as T; } - [CLSCompliant(false)] public AssemblyDefinition GetCecilObject (IUnresolvedAssembly content) { return InternalGetCecilObject (content); } - [CLSCompliant(false)] + public TypeDefinition GetCecilObject (IUnresolvedTypeDefinition type) { if (type == null) @@ -1758,25 +1744,25 @@ namespace ICSharpCode.Decompiler.TypeSystem return InternalGetCecilObject (type); } - [CLSCompliant(false)] + public MethodDefinition GetCecilObject (IUnresolvedMethod method) { return InternalGetCecilObject (method); } - [CLSCompliant(false)] + public FieldDefinition GetCecilObject (IUnresolvedField field) { return InternalGetCecilObject (field); } - [CLSCompliant(false)] + public EventDefinition GetCecilObject (IUnresolvedEvent evt) { return InternalGetCecilObject (evt); } - [CLSCompliant(false)] + public PropertyDefinition GetCecilObject (IUnresolvedProperty property) { return InternalGetCecilObject (property); diff --git a/ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs b/ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs index 900289220..eadea20cd 100644 --- a/ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs +++ b/ICSharpCode.Decompiler/TypeSystem/Implementation/TypeWithElementType.cs @@ -22,7 +22,6 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation { public abstract class TypeWithElementType : AbstractType { - [CLSCompliant(false)] protected IType elementType; protected TypeWithElementType(IType elementType) diff --git a/ICSharpCode.Decompiler/Util/7BitEncodedInts.cs b/ICSharpCode.Decompiler/Util/7BitEncodedInts.cs deleted file mode 100644 index 536653ade..000000000 --- a/ICSharpCode.Decompiler/Util/7BitEncodedInts.cs +++ /dev/null @@ -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 -{ - /// - /// A binary reader that can read the output of BinaryWriterWith7BitEncodedInts. - /// - 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"); - } - } - - /// - /// A binary writer that encodes all integers as 7-bit-encoded-ints. - /// - 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)); - } - } -} diff --git a/ICSharpCode.Decompiler/Util/BitVector16.cs b/ICSharpCode.Decompiler/Util/BitVector16.cs index 08c3ed54a..655cfdc11 100644 --- a/ICSharpCode.Decompiler/Util/BitVector16.cs +++ b/ICSharpCode.Decompiler/Util/BitVector16.cs @@ -25,7 +25,6 @@ namespace ICSharpCode.Decompiler.Util /// Holds 16 boolean values. /// [Serializable] - [CLSCompliant(false)] public struct BitVector16 : IEquatable { ushort data; diff --git a/ICSharpCode.Decompiler/Util/ImmutableStack.cs b/ICSharpCode.Decompiler/Util/ImmutableStack.cs deleted file mode 100644 index 2ef2b9a91..000000000 --- a/ICSharpCode.Decompiler/Util/ImmutableStack.cs +++ /dev/null @@ -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 -{ - /// - /// An immutable stack. - /// - /// Using 'foreach' on the stack will return the items from top to bottom (in the order they would be popped). - /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix")] - [Serializable] - public sealed class ImmutableStack : IEnumerable - { - /// - /// Gets the empty stack instance. - /// - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "ImmutableStack is immutable")] - [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1000:DoNotDeclareStaticMembersOnGenericTypes")] - public static readonly ImmutableStack Empty = new ImmutableStack(); - - readonly T value; - readonly ImmutableStack next; - - private ImmutableStack() - { - } - - private ImmutableStack(T value, ImmutableStack next) - { - this.value = value; - this.next = next; - } - - /// - /// Pushes an item on the stack. This does not modify the stack itself, but returns a new - /// one with the value pushed. - /// - public ImmutableStack Push(T item) - { - return new ImmutableStack(item, this); - } - - /// - /// Gets the item on the top of the stack. - /// - /// The stack is empty. - public T Peek() - { - if (IsEmpty) - throw new InvalidOperationException("Operation not valid on empty stack."); - return value; - } - - /// - /// Gets the item on the top of the stack. - /// Returns default(T) if the stack is empty. - /// - public T PeekOrDefault() - { - return value; - } - - /// - /// Gets the stack with the top item removed. - /// - /// The stack is empty. - public ImmutableStack Pop() - { - if (IsEmpty) - throw new InvalidOperationException("Operation not valid on empty stack."); - return next; - } - - /// - /// Gets if this stack is empty. - /// - public bool IsEmpty { - get { return next == null; } - } - - /// - /// Gets an enumerator that iterates through the stack top-to-bottom. - /// - public IEnumerator GetEnumerator() - { - ImmutableStack t = this; - while (!t.IsEmpty) { - yield return t.value; - t = t.next; - } - } - - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() - { - return this.GetEnumerator(); - } - - /// - public override string ToString() - { - StringBuilder b = new StringBuilder("[Stack"); - foreach (T val in this) { - b.Append(' '); - b.Append(val); - } - b.Append(']'); - return b.ToString(); - } - } -} diff --git a/ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs b/ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs index daffa9865..8ee9db8b0 100644 --- a/ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs +++ b/ILSpy.AddIn/CodeElementXmlDocKeyProvider.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Text; using ICSharpCode.Decompiler.CSharp.Syntax; -using ICSharpCode.NRefactory.CSharp; namespace ICSharpCode.ILSpy.AddIn { diff --git a/ILSpy.AddIn/ILSpyAddInPackage.cs b/ILSpy.AddIn/ILSpyAddInPackage.cs index 5a70c6188..8a5a88da4 100644 --- a/ILSpy.AddIn/ILSpyAddInPackage.cs +++ b/ILSpy.AddIn/ILSpyAddInPackage.cs @@ -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; diff --git a/ILSpy.AddIn/PkgCmdID.cs b/ILSpy.AddIn/PkgCmdID.cs index c95efa9b6..841381a51 100644 --- a/ILSpy.AddIn/PkgCmdID.cs +++ b/ILSpy.AddIn/PkgCmdID.cs @@ -1,6 +1,5 @@ // PkgCmdID.cs // MUST match PkgCmdID.h -using System; namespace ICSharpCode.ILSpy.AddIn { diff --git a/ILSpy.AddIn/Utils.cs b/ILSpy.AddIn/Utils.cs index 5f2511ae1..f4310706f 100644 --- a/ILSpy.AddIn/Utils.cs +++ b/ILSpy.AddIn/Utils.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/BamlResourceEntryNode.cs b/ILSpy.BamlDecompiler/BamlResourceEntryNode.cs index 63c46d8b4..bf4378057 100644 --- a/ILSpy.BamlDecompiler/BamlResourceEntryNode.cs +++ b/ILSpy.BamlDecompiler/BamlResourceEntryNode.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs b/ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs index 76ecae963..001b9003f 100644 --- a/ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs +++ b/ILSpy.BamlDecompiler/BamlResourceNodeFactory.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs b/ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs index 21806b21f..7e014b033 100644 --- a/ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs +++ b/ILSpy.BamlDecompiler/CecilDependencyPropertyDescriptor.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/CecilType.cs b/ILSpy.BamlDecompiler/CecilType.cs index dd1a27d55..69d7bbf8b 100644 --- a/ILSpy.BamlDecompiler/CecilType.cs +++ b/ILSpy.BamlDecompiler/CecilType.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/CecilTypeResolver.cs b/ILSpy.BamlDecompiler/CecilTypeResolver.cs index ba9299fd6..ff2d677d8 100644 --- a/ILSpy.BamlDecompiler/CecilTypeResolver.cs +++ b/ILSpy.BamlDecompiler/CecilTypeResolver.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs b/ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs index a2c459d27..363db4447 100644 --- a/ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs +++ b/ILSpy.BamlDecompiler/Properties/AssemblyInfo.cs @@ -1,6 +1,5 @@ #region Using directives -using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs index f31e0f5f2..9cd4cfd62 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlBinaryReader.cs @@ -3,7 +3,6 @@ using System; using System.IO; -using System.Text; namespace Ricciolo.StylesExplorer.MarkupReflection { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs index dd53eff6c..5350b6aa5 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/BamlRecordType.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs index 516469cc6..150b2b781 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IDependencyPropertyDescriptor.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs index d4efbc0a7..5d580354e 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/IType.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs index 993126b32..950469315 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ITypeResolver.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs index a0c3a03fa..4b10bc7bc 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KeyMapping.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs index 2aa8f32b9..54e81e3a4 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/KnownInfo.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs index c2170b71c..75a65a3c5 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/NodesCollection.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs index fcb7f6ba4..48f46c23b 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/PropertyDeclaration.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs index a8b0b37d2..85e608e2f 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/ResourceName.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs index fa3e5c971..4cc372400 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlElement.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs index 1f27846b8..54b60590a 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlNode.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs index 9207f936f..270fac4dd 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlProperty.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs index 2e428618b..3d4b61790 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlPropertyElement.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs index 261a7d8ec..5a88fd509 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlReader.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs index 9440ded4b..a388a1d9f 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlSimpleProperty.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs index 56114cac3..184d10c6c 100644 --- a/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs +++ b/ILSpy.BamlDecompiler/Ricciolo.StylesExplorer.MarkupReflection/XmlBamlText.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs b/ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs index f0ec0f875..acb4614a7 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/AttachedEvent.xaml.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs b/ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs index e48b20d8a..2a0fee604 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/CustomControl.cs @@ -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 diff --git a/ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs b/ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs index 6a0932d4e..03069e34f 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/MyControl.xaml.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs b/ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs index 1dbef3631..ade24e0a9 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/Resources.xaml.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs b/ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs index 12770ff11..ab28b7c2f 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/Simple.xaml.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs b/ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs index db8950d1b..2e2ca00c1 100644 --- a/ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs +++ b/ILSpy.BamlDecompiler/Tests/Cases/SimpleNames.xaml.cs @@ -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 { diff --git a/ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs b/ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs index f4d486d37..7f3fe2753 100644 --- a/ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs +++ b/ILSpy.BamlDecompiler/Tests/Mocks/AvalonDock.cs @@ -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; diff --git a/ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs b/ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs index 30c5daa49..7bad1b94d 100644 --- a/ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs +++ b/ILSpy.BamlDecompiler/Tests/Properties/AssemblyInfo.cs @@ -1,6 +1,5 @@ #region Using directives -using System; using System.Reflection; using System.Runtime.InteropServices; diff --git a/ILSpy.BamlDecompiler/Tests/TestRunner.cs b/ILSpy.BamlDecompiler/Tests/TestRunner.cs index 152452e15..b9cdaaaa3 100644 --- a/ILSpy.BamlDecompiler/Tests/TestRunner.cs +++ b/ILSpy.BamlDecompiler/Tests/TestRunner.cs @@ -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 { diff --git a/ILSpy/AnalyzerTreeView.cs b/ILSpy/AnalyzerTreeView.cs index 5de29242e..ce40cd198 100644 --- a/ILSpy/AnalyzerTreeView.cs +++ b/ILSpy/AnalyzerTreeView.cs @@ -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; diff --git a/ILSpy/AssemblyListManager.cs b/ILSpy/AssemblyListManager.cs index 0682256ff..59199e2f8 100644 --- a/ILSpy/AssemblyListManager.cs +++ b/ILSpy/AssemblyListManager.cs @@ -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; diff --git a/ILSpy/AvalonEdit/TextMarkerService.cs b/ILSpy/AvalonEdit/TextMarkerService.cs index 367c5f4a7..b7eec889a 100644 --- a/ILSpy/AvalonEdit/TextMarkerService.cs +++ b/ILSpy/AvalonEdit/TextMarkerService.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using System.Windows; using System.Windows.Media; diff --git a/ILSpy/Commands/BrowseBackCommand.cs b/ILSpy/Commands/BrowseBackCommand.cs index e5af95db8..d3a6c9ee2 100644 --- a/ILSpy/Commands/BrowseBackCommand.cs +++ b/ILSpy/Commands/BrowseBackCommand.cs @@ -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 diff --git a/ILSpy/Commands/BrowseForwardCommand.cs b/ILSpy/Commands/BrowseForwardCommand.cs index 1e0db84a7..47674bc40 100644 --- a/ILSpy/Commands/BrowseForwardCommand.cs +++ b/ILSpy/Commands/BrowseForwardCommand.cs @@ -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 diff --git a/ILSpy/Commands/CheckForUpdatesCommand.cs b/ILSpy/Commands/CheckForUpdatesCommand.cs index 4dd3f37e8..87d0a6e99 100644 --- a/ILSpy/Commands/CheckForUpdatesCommand.cs +++ b/ILSpy/Commands/CheckForUpdatesCommand.cs @@ -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 { diff --git a/ILSpy/Commands/ExitCommand.cs b/ILSpy/Commands/ExitCommand.cs index d064aa557..f6a215d22 100644 --- a/ILSpy/Commands/ExitCommand.cs +++ b/ILSpy/Commands/ExitCommand.cs @@ -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 { diff --git a/ILSpy/Commands/OpenCommand.cs b/ILSpy/Commands/OpenCommand.cs index 435ab89b7..4fdad2bb9 100644 --- a/ILSpy/Commands/OpenCommand.cs +++ b/ILSpy/Commands/OpenCommand.cs @@ -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 diff --git a/ILSpy/Commands/OpenFromGacCommand.cs b/ILSpy/Commands/OpenFromGacCommand.cs index 2ee2ca1c6..258a182e3 100644 --- a/ILSpy/Commands/OpenFromGacCommand.cs +++ b/ILSpy/Commands/OpenFromGacCommand.cs @@ -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 { diff --git a/ILSpy/Commands/OpenListCommand.cs b/ILSpy/Commands/OpenListCommand.cs index 43f4cb458..b4bb05cac 100644 --- a/ILSpy/Commands/OpenListCommand.cs +++ b/ILSpy/Commands/OpenListCommand.cs @@ -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 { diff --git a/ILSpy/Commands/RefreshCommand.cs b/ILSpy/Commands/RefreshCommand.cs index 5c314f402..6f3312b5f 100644 --- a/ILSpy/Commands/RefreshCommand.cs +++ b/ILSpy/Commands/RefreshCommand.cs @@ -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 diff --git a/ILSpy/Commands/SaveCommand.cs b/ILSpy/Commands/SaveCommand.cs index 63989d863..f195fccf8 100644 --- a/ILSpy/Commands/SaveCommand.cs +++ b/ILSpy/Commands/SaveCommand.cs @@ -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 diff --git a/ILSpy/Commands/ShowDebugSteps.cs b/ILSpy/Commands/ShowDebugSteps.cs index d6b7ddd9c..c04c36594 100644 --- a/ILSpy/Commands/ShowDebugSteps.cs +++ b/ILSpy/Commands/ShowDebugSteps.cs @@ -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 { diff --git a/ILSpy/ContextMenuEntry.cs b/ILSpy/ContextMenuEntry.cs index 3d34322d8..b217441ef 100644 --- a/ILSpy/ContextMenuEntry.cs +++ b/ILSpy/ContextMenuEntry.cs @@ -19,7 +19,6 @@ using System; using System.ComponentModel.Composition; using System.Linq; -using System.Windows; using System.Windows.Controls; using ICSharpCode.AvalonEdit; diff --git a/ILSpy/Controls/ResourceObjectTable.xaml.cs b/ILSpy/Controls/ResourceObjectTable.xaml.cs index 019a1daeb..3f1efe6d7 100644 --- a/ILSpy/Controls/ResourceObjectTable.xaml.cs +++ b/ILSpy/Controls/ResourceObjectTable.xaml.cs @@ -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; diff --git a/ILSpy/Controls/ResourceStringTable.xaml.cs b/ILSpy/Controls/ResourceStringTable.xaml.cs index 25233a437..33be47f86 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml.cs +++ b/ILSpy/Controls/ResourceStringTable.xaml.cs @@ -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; diff --git a/ILSpy/CreateListDialog.xaml.cs b/ILSpy/CreateListDialog.xaml.cs index 83c59b875..4f410a91b 100644 --- a/ILSpy/CreateListDialog.xaml.cs +++ b/ILSpy/CreateListDialog.xaml.cs @@ -1,5 +1,4 @@ -using System; -using System.Windows; +using System.Windows; using System.Windows.Controls; namespace ICSharpCode.ILSpy diff --git a/ILSpy/DebugSteps.xaml.cs b/ILSpy/DebugSteps.xaml.cs index cf5413170..f2c44b474 100644 --- a/ILSpy/DebugSteps.xaml.cs +++ b/ILSpy/DebugSteps.xaml.cs @@ -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 diff --git a/ILSpy/DecompilationOptions.cs b/ILSpy/DecompilationOptions.cs index 57cc1c9d7..7c1bdaffd 100644 --- a/ILSpy/DecompilationOptions.cs +++ b/ILSpy/DecompilationOptions.cs @@ -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 diff --git a/ILSpy/Fusion.cs b/ILSpy/Fusion.cs index 43bd9aa7e..131dc5f28 100644 --- a/ILSpy/Fusion.cs +++ b/ILSpy/Fusion.cs @@ -18,7 +18,6 @@ using System; using System.Runtime.InteropServices; -using System.Runtime.InteropServices.ComTypes; using System.Text; namespace ICSharpCode.ILSpy diff --git a/ILSpy/ILSpySettings.cs b/ILSpy/ILSpySettings.cs index 0d5c968cf..781c3f978 100644 --- a/ILSpy/ILSpySettings.cs +++ b/ILSpy/ILSpySettings.cs @@ -18,7 +18,6 @@ using System; using System.IO; -using System.Text; using System.Threading; using System.Xml; using System.Xml.Linq; diff --git a/ILSpy/ILSpyTraceListener.cs b/ILSpy/ILSpyTraceListener.cs index ec263b4e9..162a3d093 100644 --- a/ILSpy/ILSpyTraceListener.cs +++ b/ILSpy/ILSpyTraceListener.cs @@ -19,7 +19,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; -using System.Linq; using System.Threading; using ICSharpCode.ILSpy.Controls; diff --git a/ILSpy/IPane.cs b/ILSpy/IPane.cs index 2447f8bdd..d429b6cb2 100644 --- a/ILSpy/IPane.cs +++ b/ILSpy/IPane.cs @@ -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 { diff --git a/ILSpy/Images/AccessOverlayIcon.cs b/ILSpy/Images/AccessOverlayIcon.cs index e0a63e9db..ca11c46c4 100644 --- a/ILSpy/Images/AccessOverlayIcon.cs +++ b/ILSpy/Images/AccessOverlayIcon.cs @@ -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 { diff --git a/ILSpy/Images/MemberIcon.cs b/ILSpy/Images/MemberIcon.cs index 3e8bcd80b..04f49ee13 100644 --- a/ILSpy/Images/MemberIcon.cs +++ b/ILSpy/Images/MemberIcon.cs @@ -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 { diff --git a/ILSpy/Images/TypeIcon.cs b/ILSpy/Images/TypeIcon.cs index 7bbb0d08a..a3e6b4b91 100644 --- a/ILSpy/Images/TypeIcon.cs +++ b/ILSpy/Images/TypeIcon.cs @@ -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 { diff --git a/ILSpy/Languages/CSharpLanguage.cs b/ILSpy/Languages/CSharpLanguage.cs index 5b2061f43..c2544cb16 100644 --- a/ILSpy/Languages/CSharpLanguage.cs +++ b/ILSpy/Languages/CSharpLanguage.cs @@ -23,15 +23,9 @@ using System.ComponentModel.Composition; using System.IO; using System.Linq; using System.Resources; -using System.Text.RegularExpressions; -using System.Threading.Tasks; -using System.Xml; using ICSharpCode.Decompiler; -using ICSharpCode.Decompiler.CSharp.Transforms; using ICSharpCode.ILSpy.Options; -using ICSharpCode.ILSpy.XmlDoc; -using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; using ICSharpCode.Decompiler.CSharp; using ICSharpCode.Decompiler.CSharp.OutputVisitor; diff --git a/ILSpy/Languages/ILAstLanguage.cs b/ILSpy/Languages/ILAstLanguage.cs index db2fc8a7e..7ab2d80e0 100644 --- a/ILSpy/Languages/ILAstLanguage.cs +++ b/ILSpy/Languages/ILAstLanguage.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using System.Diagnostics; using System.Linq; using ICSharpCode.Decompiler; @@ -31,7 +30,7 @@ using Mono.Cecil; namespace ICSharpCode.ILSpy { - #if DEBUG +#if DEBUG /// /// Represents the ILAst "language" used for debugging purposes. /// diff --git a/ILSpy/Languages/ILLanguage.cs b/ILSpy/Languages/ILLanguage.cs index cc5e5b168..f3dc2ff00 100644 --- a/ILSpy/Languages/ILLanguage.cs +++ b/ILSpy/Languages/ILLanguage.cs @@ -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 ICSharpCode.Decompiler; using ICSharpCode.Decompiler.Disassembler; diff --git a/ILSpy/Languages/IResourceFileHandler.cs b/ILSpy/Languages/IResourceFileHandler.cs index 9d0849df2..3ea4fb6bc 100644 --- a/ILSpy/Languages/IResourceFileHandler.cs +++ b/ILSpy/Languages/IResourceFileHandler.cs @@ -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.IO; namespace ICSharpCode.ILSpy diff --git a/ILSpy/Languages/Language.cs b/ILSpy/Languages/Language.cs index 6a09808ea..57557915f 100644 --- a/ILSpy/Languages/Language.cs +++ b/ILSpy/Languages/Language.cs @@ -17,11 +17,7 @@ // DEALINGS IN THE SOFTWARE. using System; -using System.Collections; using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Resources; using ICSharpCode.Decompiler; using Mono.Cecil; diff --git a/ILSpy/Languages/Languages.cs b/ILSpy/Languages/Languages.cs index f3abcef21..2cf2e5632 100644 --- a/ILSpy/Languages/Languages.cs +++ b/ILSpy/Languages/Languages.cs @@ -16,12 +16,10 @@ // 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.ObjectModel; using System.ComponentModel.Composition.Hosting; using System.Linq; -using ICSharpCode.NRefactory; namespace ICSharpCode.ILSpy { diff --git a/ILSpy/Languages/TextTokenWriter.cs b/ILSpy/Languages/TextTokenWriter.cs index eb407793c..df7260407 100644 --- a/ILSpy/Languages/TextTokenWriter.cs +++ b/ILSpy/Languages/TextTokenWriter.cs @@ -24,8 +24,6 @@ using ICSharpCode.Decompiler.CSharp; using ICSharpCode.Decompiler.CSharp.OutputVisitor; using ICSharpCode.Decompiler.CSharp.Syntax; using ICSharpCode.Decompiler.IL; -using ICSharpCode.NRefactory; -using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; namespace ICSharpCode.ILSpy diff --git a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs index 0e5b7847d..1bcdc80b4 100644 --- a/ILSpy/Options/DecompilerSettingsPanel.xaml.cs +++ b/ILSpy/Options/DecompilerSettingsPanel.xaml.cs @@ -16,11 +16,9 @@ // 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.Controls; using System.Xml.Linq; using ICSharpCode.Decompiler; -using ICSharpCode.Decompiler.CSharp; namespace ICSharpCode.ILSpy.Options { diff --git a/ILSpy/Options/DisplaySettings.cs b/ILSpy/Options/DisplaySettings.cs index d1d703434..806f7eac6 100644 --- a/ILSpy/Options/DisplaySettings.cs +++ b/ILSpy/Options/DisplaySettings.cs @@ -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.ComponentModel; using System.Windows.Media; diff --git a/ILSpy/Properties/WPFAssemblyInfo.cs b/ILSpy/Properties/WPFAssemblyInfo.cs index a83408fca..144c0e154 100644 --- a/ILSpy/Properties/WPFAssemblyInfo.cs +++ b/ILSpy/Properties/WPFAssemblyInfo.cs @@ -1,6 +1,5 @@ #region Using directives -using System.Resources; using System.Windows; #endregion @@ -19,9 +18,9 @@ using System.Windows; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) + //(used if a resource is not found in the page, + // or application resource dictionaries) ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) )] diff --git a/ILSpy/SearchPane.cs b/ILSpy/SearchPane.cs index c2906ad1c..18a298d88 100644 --- a/ILSpy/SearchPane.cs +++ b/ILSpy/SearchPane.cs @@ -20,7 +20,6 @@ using System; using System.Collections.ObjectModel; using System.Collections.Specialized; using System.ComponentModel; -using System.Linq; using System.Threading; using System.Windows; using System.Windows.Controls; diff --git a/ILSpy/SearchStrategies.cs b/ILSpy/SearchStrategies.cs index 9ccf987cc..cf8a1d3da 100644 --- a/ILSpy/SearchStrategies.cs +++ b/ILSpy/SearchStrategies.cs @@ -4,9 +4,7 @@ using System.Linq; using System.Text.RegularExpressions; using System.Windows.Media; using ICSharpCode.ILSpy.TreeNodes; -using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; -using Mono.Cecil.Cil; namespace ICSharpCode.ILSpy { diff --git a/ILSpy/TextView/AvalonEditTextOutput.cs b/ILSpy/TextView/AvalonEditTextOutput.cs index 6206dbbf4..74c330e27 100644 --- a/ILSpy/TextView/AvalonEditTextOutput.cs +++ b/ILSpy/TextView/AvalonEditTextOutput.cs @@ -26,7 +26,6 @@ using System.Windows; using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Folding; using ICSharpCode.AvalonEdit.Rendering; -using ICSharpCode.Decompiler; using TextLocation = ICSharpCode.Decompiler.CSharp.Syntax.TextLocation; namespace ICSharpCode.ILSpy.TextView diff --git a/ILSpy/TextView/DecompilerTextView.cs b/ILSpy/TextView/DecompilerTextView.cs index 84da42692..40cae72ae 100644 --- a/ILSpy/TextView/DecompilerTextView.cs +++ b/ILSpy/TextView/DecompilerTextView.cs @@ -43,11 +43,11 @@ using ICSharpCode.AvalonEdit.Rendering; using ICSharpCode.AvalonEdit.Search; using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.CSharp; +using ICSharpCode.Decompiler.Documentation; using ICSharpCode.ILSpy.AvalonEdit; using ICSharpCode.ILSpy.Options; using ICSharpCode.ILSpy.TreeNodes; using ICSharpCode.ILSpy.XmlDoc; -using ICSharpCode.NRefactory.Documentation; using Microsoft.Win32; using Mono.Cecil; diff --git a/ILSpy/TextView/FoldingCommands.cs b/ILSpy/TextView/FoldingCommands.cs index 936ff0405..b914c13db 100644 --- a/ILSpy/TextView/FoldingCommands.cs +++ b/ILSpy/TextView/FoldingCommands.cs @@ -16,8 +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.Linq; using ICSharpCode.AvalonEdit; diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs b/ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs index b9154ead7..35c40c73b 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs @@ -16,10 +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.Linq; -using System.Windows; -using ICSharpCode.TreeView; using Mono.Cecil; namespace ICSharpCode.ILSpy.TreeNodes.Analyzer diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzedAttributeAppliedToTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzedAttributeAppliedToTreeNode.cs index 6ca5766ad..adf9de926 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzedAttributeAppliedToTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzedAttributeAppliedToTreeNode.cs @@ -21,7 +21,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using Mono.Cecil; -using Mono.Cecil.Cil; using System.Collections.Concurrent; using ICSharpCode.Decompiler.Util; diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorTreeNode.cs index 3d9639e18..7d06191d0 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzedEventAccessorTreeNode.cs @@ -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 Mono.Cecil; namespace ICSharpCode.ILSpy.TreeNodes.Analyzer diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzedMethodOverridesTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzedMethodOverridesTreeNode.cs index 787671387..7876cdc00 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzedMethodOverridesTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzedMethodOverridesTreeNode.cs @@ -20,7 +20,6 @@ using System; using System.Collections.Generic; using System.Linq; using System.Threading; -using ICSharpCode.Decompiler; using ICSharpCode.Decompiler.TypeSystem; using Mono.Cecil; diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorTreeNode.cs index e9b898cba..5ce4956e6 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzedPropertyAccessorTreeNode.cs @@ -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 Mono.Cecil; namespace ICSharpCode.ILSpy.TreeNodes.Analyzer diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs index cf75c6ec7..921aed65f 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzedTypeUsedByTreeNode.cs @@ -21,7 +21,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using Mono.Cecil; -using Mono.Cecil.Cil; namespace ICSharpCode.ILSpy.TreeNodes.Analyzer { diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzerEntityTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzerEntityTreeNode.cs index d9e3013ac..2e2c98845 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzerEntityTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzerEntityTreeNode.cs @@ -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 ICSharpCode.TreeView; using Mono.Cecil; diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzerSearchTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzerSearchTreeNode.cs index a33d5507e..cf0a40e5e 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzerSearchTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzerSearchTreeNode.cs @@ -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.Threading; diff --git a/ILSpy/TreeNodes/Analyzer/AnalyzerTreeNode.cs b/ILSpy/TreeNodes/Analyzer/AnalyzerTreeNode.cs index e6268def0..fea756f3a 100644 --- a/ILSpy/TreeNodes/Analyzer/AnalyzerTreeNode.cs +++ b/ILSpy/TreeNodes/Analyzer/AnalyzerTreeNode.cs @@ -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; diff --git a/ILSpy/TreeNodes/DerivedTypesEntryNode.cs b/ILSpy/TreeNodes/DerivedTypesEntryNode.cs index 7f3a3b274..c10ec1d4f 100644 --- a/ILSpy/TreeNodes/DerivedTypesEntryNode.cs +++ b/ILSpy/TreeNodes/DerivedTypesEntryNode.cs @@ -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.Threading; using ICSharpCode.Decompiler; diff --git a/ILSpy/TreeNodes/DerivedTypesTreeNode.cs b/ILSpy/TreeNodes/DerivedTypesTreeNode.cs index a6f66fae2..12e872842 100644 --- a/ILSpy/TreeNodes/DerivedTypesTreeNode.cs +++ b/ILSpy/TreeNodes/DerivedTypesTreeNode.cs @@ -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.Linq; using System.Threading; diff --git a/ILSpy/TreeNodes/ILSpyTreeNode.cs b/ILSpy/TreeNodes/ILSpyTreeNode.cs index aa860e2b0..825e4f699 100644 --- a/ILSpy/TreeNodes/ILSpyTreeNode.cs +++ b/ILSpy/TreeNodes/ILSpyTreeNode.cs @@ -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.Specialized; using System.ComponentModel; using System.Linq; diff --git a/ILSpy/TreeNodes/IMemberTreeNode.cs b/ILSpy/TreeNodes/IMemberTreeNode.cs index 938ba8ac1..b16164880 100644 --- a/ILSpy/TreeNodes/IMemberTreeNode.cs +++ b/ILSpy/TreeNodes/IMemberTreeNode.cs @@ -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 Mono.Cecil; namespace ICSharpCode.ILSpy.TreeNodes diff --git a/ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs b/ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs index 12f17ae27..7b3d7cfd7 100644 --- a/ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs +++ b/ILSpy/TreeNodes/ResourceNodes/IResourceNodeFactory.cs @@ -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 Mono.Cecil; namespace ICSharpCode.ILSpy.TreeNodes diff --git a/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs b/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs index 8d1c0c1c9..b945ab137 100644 --- a/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs +++ b/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs @@ -16,12 +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.Collections.Generic; using System.ComponentModel.Composition; using System.Drawing; -using System.Linq; -using System.Text; using System.Windows.Forms; using ICSharpCode.Decompiler; diff --git a/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs b/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs index 924c90d09..0a4f2cc0b 100644 --- a/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs +++ b/ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs @@ -16,13 +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.Linq; -using System.Windows; using System.Diagnostics; -using Mono.Cecil; -using ICSharpCode.TreeView; -using ICSharpCode.ILSpy.TreeNodes.Analyzer; namespace ICSharpCode.ILSpy.TreeNodes { diff --git a/ILSpy/XmlDoc/AddXmlDocTransform.cs b/ILSpy/XmlDoc/AddXmlDocTransform.cs index bafe9be32..14eda0d97 100644 --- a/ILSpy/XmlDoc/AddXmlDocTransform.cs +++ b/ILSpy/XmlDoc/AddXmlDocTransform.cs @@ -19,7 +19,6 @@ using System; using System.IO; using ICSharpCode.Decompiler.CSharp.Syntax; -using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; namespace ICSharpCode.ILSpy.XmlDoc diff --git a/ILSpy/XmlDoc/XmlDocLoader.cs b/ILSpy/XmlDoc/XmlDocLoader.cs index 68b4097b2..4e2d74367 100644 --- a/ILSpy/XmlDoc/XmlDocLoader.cs +++ b/ILSpy/XmlDoc/XmlDocLoader.cs @@ -20,7 +20,7 @@ using System; using System.Diagnostics; using System.IO; using System.Runtime.CompilerServices; -using ICSharpCode.NRefactory.Documentation; +using ICSharpCode.Decompiler.Documentation; using Mono.Cecil; namespace ICSharpCode.ILSpy.XmlDoc diff --git a/SharpTreeView/Converters.cs b/SharpTreeView/Converters.cs index 8c12e5b54..a6d9497cf 100644 --- a/SharpTreeView/Converters.cs +++ b/SharpTreeView/Converters.cs @@ -2,9 +2,6 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Windows; using System.Windows.Markup; using System.Windows.Data; diff --git a/SharpTreeView/EditTextBox.cs b/SharpTreeView/EditTextBox.cs index 0b049fb5f..d4cdad272 100644 --- a/SharpTreeView/EditTextBox.cs +++ b/SharpTreeView/EditTextBox.cs @@ -1,13 +1,8 @@ // 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.Linq; -using System.Text; using System.Windows.Controls; using System.Windows.Input; -using System.Windows.Data; using System.Windows; namespace ICSharpCode.TreeView diff --git a/SharpTreeView/ExtensionMethods.cs b/SharpTreeView/ExtensionMethods.cs index d4e31d442..38e554c47 100644 --- a/SharpTreeView/ExtensionMethods.cs +++ b/SharpTreeView/ExtensionMethods.cs @@ -1,14 +1,11 @@ // 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.Linq; -using System.Text; using System.Windows.Media; using System.Windows; using System.Collections; -using System.Windows.Input; namespace ICSharpCode.TreeView { diff --git a/SharpTreeView/GeneralAdorner.cs b/SharpTreeView/GeneralAdorner.cs index 6bad75c80..749a04c09 100644 --- a/SharpTreeView/GeneralAdorner.cs +++ b/SharpTreeView/GeneralAdorner.cs @@ -1,10 +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.Generic; -using System.Linq; -using System.Text; using System.Windows.Documents; using System.Windows; using System.Windows.Media; diff --git a/SharpTreeView/InsertMarker.cs b/SharpTreeView/InsertMarker.cs index 4a3ff4530..0437bc8c8 100644 --- a/SharpTreeView/InsertMarker.cs +++ b/SharpTreeView/InsertMarker.cs @@ -1,10 +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.Generic; -using System.Linq; -using System.Text; using System.Windows.Controls; using System.Windows; diff --git a/SharpTreeView/LinesRenderer.cs b/SharpTreeView/LinesRenderer.cs index 7ab857bf9..d20f74823 100644 --- a/SharpTreeView/LinesRenderer.cs +++ b/SharpTreeView/LinesRenderer.cs @@ -1,10 +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.Generic; -using System.Linq; -using System.Text; using System.Windows; using System.Windows.Media; diff --git a/SharpTreeView/Properties/AssemblyInfo.cs b/SharpTreeView/Properties/AssemblyInfo.cs index 71c9b636b..539bd4bd4 100644 --- a/SharpTreeView/Properties/AssemblyInfo.cs +++ b/SharpTreeView/Properties/AssemblyInfo.cs @@ -2,9 +2,6 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System.Reflection; -using System.Resources; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using System.Windows; using System.Windows.Markup; @@ -29,11 +26,11 @@ using System.Windows.Markup; [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) + //(used if a resource is not found in the page, + // or application resource dictionaries) ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) )] diff --git a/SharpTreeView/SharpGridView.cs b/SharpTreeView/SharpGridView.cs index 55f24e97e..81588bade 100644 --- a/SharpTreeView/SharpGridView.cs +++ b/SharpTreeView/SharpGridView.cs @@ -1,10 +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.Generic; -using System.Linq; -using System.Text; using System.Windows.Controls; using System.Windows; diff --git a/SharpTreeView/SharpTreeNode.cs b/SharpTreeView/SharpTreeNode.cs index 65561ea93..c8a586c66 100644 --- a/SharpTreeView/SharpTreeNode.cs +++ b/SharpTreeView/SharpTreeNode.cs @@ -5,13 +5,9 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Text; using System.Windows; using System.ComponentModel; -using System.Collections.ObjectModel; -using System.Windows.Controls; using System.Collections.Specialized; -using System.Windows.Input; using System.Windows.Media; namespace ICSharpCode.TreeView diff --git a/SharpTreeView/SharpTreeNodeCollection.cs b/SharpTreeView/SharpTreeNodeCollection.cs index 3fcd25f83..f3bf73686 100644 --- a/SharpTreeView/SharpTreeNodeCollection.cs +++ b/SharpTreeView/SharpTreeNodeCollection.cs @@ -5,8 +5,6 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Text; -using System.Collections.ObjectModel; using System.Collections.Specialized; namespace ICSharpCode.TreeView diff --git a/SharpTreeView/SharpTreeNodeView.cs b/SharpTreeView/SharpTreeNodeView.cs index 78481cf81..736b2dbcd 100644 --- a/SharpTreeView/SharpTreeNodeView.cs +++ b/SharpTreeView/SharpTreeNodeView.cs @@ -2,16 +2,11 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Windows.Controls; using System.Windows; using System.Windows.Controls.Primitives; using System.Windows.Media; -using System.Windows.Input; using System.ComponentModel; -using System.Collections.Specialized; namespace ICSharpCode.TreeView { diff --git a/SharpTreeView/SharpTreeView.cs b/SharpTreeView/SharpTreeView.cs index 093e942ba..7fbeb9852 100644 --- a/SharpTreeView/SharpTreeView.cs +++ b/SharpTreeView/SharpTreeView.cs @@ -6,14 +6,11 @@ using System.Collections.Generic; using System.Collections.Specialized; using System.Diagnostics; using System.Linq; -using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Controls.Primitives; -using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; -using System.Windows.Media; using System.Windows.Threading; namespace ICSharpCode.TreeView diff --git a/SharpTreeView/SharpTreeViewItem.cs b/SharpTreeView/SharpTreeViewItem.cs index 2ee2fce53..f0ba2e6c3 100644 --- a/SharpTreeView/SharpTreeViewItem.cs +++ b/SharpTreeView/SharpTreeViewItem.cs @@ -2,14 +2,10 @@ // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; -using System.Collections.Generic; using System.Linq; -using System.Text; using System.Windows.Controls; using System.Windows; -using System.Windows.Media; using System.Windows.Input; -using System.Diagnostics; namespace ICSharpCode.TreeView { diff --git a/SharpTreeView/TreeFlattener.cs b/SharpTreeView/TreeFlattener.cs index 332031dfd..929dc6a9b 100644 --- a/SharpTreeView/TreeFlattener.cs +++ b/SharpTreeView/TreeFlattener.cs @@ -5,10 +5,7 @@ using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; -using System.ComponentModel; using System.Diagnostics; -using System.Linq; -using System.Text; namespace ICSharpCode.TreeView { diff --git a/TestPlugin/ContextMenuCommand.cs b/TestPlugin/ContextMenuCommand.cs index 50c98b498..ea46bfdfb 100644 --- a/TestPlugin/ContextMenuCommand.cs +++ b/TestPlugin/ContextMenuCommand.cs @@ -1,11 +1,9 @@ // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) -using System; using System.Linq; using ICSharpCode.ILSpy; using ICSharpCode.ILSpy.TreeNodes; -using ICSharpCode.TreeView; using Microsoft.Win32; using Mono.Cecil; diff --git a/TestPlugin/CustomLanguage.cs b/TestPlugin/CustomLanguage.cs index 8fce32bb8..29bbddab4 100644 --- a/TestPlugin/CustomLanguage.cs +++ b/TestPlugin/CustomLanguage.cs @@ -1,13 +1,10 @@ // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) -using System; using System.ComponentModel.Composition; -using System.Linq; using System.Windows.Controls; using ICSharpCode.Decompiler; using ICSharpCode.ILSpy; -using ICSharpCode.NRefactory.CSharp; using Mono.Cecil; namespace TestPlugin diff --git a/TestPlugin/CustomOptionPage.xaml.cs b/TestPlugin/CustomOptionPage.xaml.cs index 7e0b54593..f069719ec 100644 --- a/TestPlugin/CustomOptionPage.xaml.cs +++ b/TestPlugin/CustomOptionPage.xaml.cs @@ -1,16 +1,8 @@ // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) -using System; -using System.Collections.Generic; using System.ComponentModel; -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; using System.Xml.Linq; using ICSharpCode.ILSpy; using ICSharpCode.ILSpy.Options; diff --git a/TestPlugin/MainMenuCommand.cs b/TestPlugin/MainMenuCommand.cs index bbda41ace..3a563ff33 100644 --- a/TestPlugin/MainMenuCommand.cs +++ b/TestPlugin/MainMenuCommand.cs @@ -1,7 +1,6 @@ // Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under MIT X11 license (for details please see \doc\license.txt) -using System; using ICSharpCode.ILSpy; namespace TestPlugin diff --git a/TestPlugin/Properties/AssemblyInfo.cs b/TestPlugin/Properties/AssemblyInfo.cs index 48726c57e..2d0b9b6d8 100644 --- a/TestPlugin/Properties/AssemblyInfo.cs +++ b/TestPlugin/Properties/AssemblyInfo.cs @@ -1,6 +1,5 @@ #region Using directives -using System; using System.Reflection; using System.Runtime.InteropServices;