From 77d9ee73e93510f4e51dbfdae78967cdfc850a5e Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Mon, 29 Dec 2025 19:20:12 +0100 Subject: [PATCH] Fix IDE2000 globally --- ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs | 3 --- ICSharpCode.Decompiler.TestRunner/Program.cs | 5 ----- ICSharpCode.Decompiler.Tests/Helpers/Tester.cs | 2 -- ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs | 1 - ICSharpCode.Decompiler.Tests/Semantics/ConversionTests.cs | 3 --- ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs | 1 - .../TestCases/Correctness/ComInterop.cs | 1 - .../TestCases/Correctness/FloatingPointArithmetic.cs | 1 - .../TestCases/Correctness/LINQRaytracer.cs | 1 - .../TestCases/Correctness/NullableTests.cs | 1 - .../TestCases/Correctness/YieldReturn.cs | 2 -- .../TestCases/Pretty/ConstructorInitializers.cs | 4 ---- .../TestCases/Pretty/CustomAttributeSamples.cs | 2 -- ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3611.cs | 2 -- ICSharpCode.Decompiler.Tests/TestCases/Pretty/Records.cs | 1 - .../TestCases/Pretty/RefLocalsAndReturns.cs | 1 - .../TestCases/Pretty/ShortCircuit.cs | 1 - ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs | 1 - .../TypeSystem/ReflectionHelperTests.cs | 1 - .../TypeSystem/TypeSystemLoaderTests.cs | 2 -- .../TypeSystem/TypeSystemTestCase.cs | 1 - ICSharpCode.Decompiler.Tests/Util/FileUtilityTests.cs | 1 - ICSharpCode.Decompiler/CSharp/CallBuilder.cs | 1 - ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs | 1 - .../CSharp/OutputVisitor/CSharpFormattingOptions.cs | 3 --- ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs | 2 -- .../CSharp/OutputVisitor/InsertSpecialsDecorator.cs | 4 ---- .../CSharp/ProjectDecompiler/ProjectFileWriterDefault.cs | 1 - ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs | 2 -- ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs | 2 -- ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs | 2 -- ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs | 1 - .../CSharp/Syntax/Expressions/ArrayCreateExpression.cs | 1 - .../CSharp/Syntax/Expressions/BaseReferenceExpression.cs | 1 - .../CSharp/Syntax/Expressions/CheckedExpression.cs | 1 - .../CSharp/Syntax/Expressions/DefaultValueExpression.cs | 1 - .../CSharp/Syntax/Expressions/DirectionExpression.cs | 1 - .../CSharp/Syntax/Expressions/IsExpression.cs | 2 -- .../CSharp/Syntax/Expressions/NamedArgumentExpression.cs | 1 - .../CSharp/Syntax/Expressions/NamedExpression.cs | 1 - .../CSharp/Syntax/Expressions/NullReferenceExpression.cs | 1 - .../CSharp/Syntax/Expressions/ParenthesizedExpression.cs | 1 - .../CSharp/Syntax/Expressions/PointerReferenceExpression.cs | 1 - .../CSharp/Syntax/Expressions/PrimitiveExpression.cs | 3 --- .../CSharp/Syntax/Expressions/QueryExpression.cs | 1 - .../CSharp/Syntax/Expressions/SizeOfExpression.cs | 1 - .../CSharp/Syntax/Expressions/StackAllocExpression.cs | 1 - .../CSharp/Syntax/Expressions/SwitchExpression.cs | 1 - .../CSharp/Syntax/Expressions/ThisReferenceExpression.cs | 1 - .../CSharp/Syntax/Expressions/TypeOfExpression.cs | 2 -- .../CSharp/Syntax/Expressions/TypeReferenceExpression.cs | 1 - .../CSharp/Syntax/Expressions/UncheckedExpression.cs | 1 - .../CSharp/Syntax/Expressions/UndocumentedExpression.cs | 1 - .../CSharp/Syntax/GeneralScope/AttributeSection.cs | 1 - ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs | 1 - .../CSharp/Syntax/GeneralScope/Constraint.cs | 1 - .../CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs | 1 - .../CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs | 1 - .../CSharp/Syntax/PatternMatching/AnyNode.cs | 1 - .../CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs | 1 - ICSharpCode.Decompiler/CSharp/Syntax/Roles.cs | 1 - .../CSharp/Syntax/Statements/BreakStatement.cs | 1 - .../CSharp/Syntax/Statements/CheckedStatement.cs | 1 - .../CSharp/Syntax/Statements/ContinueStatement.cs | 1 - .../CSharp/Syntax/Statements/DoWhileStatement.cs | 3 +-- .../CSharp/Syntax/Statements/EmptyStatement.cs | 1 - .../CSharp/Syntax/Statements/ExpressionStatement.cs | 1 - .../CSharp/Syntax/Statements/FixedStatement.cs | 1 - .../CSharp/Syntax/Statements/ForStatement.cs | 1 - .../CSharp/Syntax/Statements/ForeachStatement.cs | 1 - .../CSharp/Syntax/Statements/GotoStatement.cs | 1 - .../CSharp/Syntax/Statements/IfElseStatement.cs | 1 - .../CSharp/Syntax/Statements/LabelStatement.cs | 1 - .../CSharp/Syntax/Statements/LockStatement.cs | 1 - .../CSharp/Syntax/Statements/ReturnStatement.cs | 1 - .../CSharp/Syntax/Statements/SwitchStatement.cs | 1 - .../CSharp/Syntax/Statements/ThrowStatement.cs | 1 - .../CSharp/Syntax/Statements/TryCatchStatement.cs | 1 - .../CSharp/Syntax/Statements/UncheckedStatement.cs | 1 - .../CSharp/Syntax/Statements/UnsafeStatement.cs | 1 - .../CSharp/Syntax/Statements/UsingStatement.cs | 1 - .../CSharp/Syntax/Statements/VariableDeclarationStatement.cs | 1 - .../CSharp/Syntax/Statements/WhileStatement.cs | 1 - .../CSharp/Syntax/Statements/YieldBreakStatement.cs | 1 - .../CSharp/Syntax/Statements/YieldReturnStatement.cs | 1 - ICSharpCode.Decompiler/CSharp/Syntax/SyntaxExtensions.cs | 1 - ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs | 1 - .../CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs | 1 - .../CSharp/Syntax/TypeMembers/VariableInitializer.cs | 1 - ICSharpCode.Decompiler/FlowAnalysis/ControlFlowNode.cs | 1 - ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs | 1 - ICSharpCode.Decompiler/IL/ControlFlow/StateRangeAnalysis.cs | 1 - .../IL/Instructions/CompoundAssignmentInstruction.cs | 1 - ICSharpCode.Decompiler/IL/Instructions/MemoryInstructions.cs | 1 - ICSharpCode.Decompiler/IL/Instructions/PatternMatching.cs | 1 - ICSharpCode.Decompiler/IL/Instructions/SimpleInstruction.cs | 1 - ICSharpCode.Decompiler/IL/Instructions/StringToInt.cs | 1 - ICSharpCode.Decompiler/IL/Instructions/UsingInstruction.cs | 1 - ICSharpCode.Decompiler/IL/PointerArithmeticOffset.cs | 1 - ICSharpCode.Decompiler/IL/Transforms/BlockTransform.cs | 1 - ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs | 1 - .../IL/Transforms/RemoveDeadVariableInit.cs | 1 - ICSharpCode.Decompiler/IL/Transforms/TransformAssignment.cs | 1 - .../IL/Transforms/TransformExpressionTrees.cs | 1 - ICSharpCode.Decompiler/Metadata/FindTypeDecoder.cs | 2 -- ICSharpCode.Decompiler/Output/ITextOutput.cs | 1 - .../TypeSystem/Implementation/SpecializedMember.cs | 1 - ICSharpCode.Decompiler/TypeSystem/TypeKind.cs | 1 - ICSharpCode.Decompiler/Util/CollectionExtensions.cs | 1 - ICSharpCode.Decompiler/Util/LongSet.cs | 1 - ICSharpCode.Decompiler/Util/UnicodeNewline.cs | 3 --- ICSharpCode.ILSpyX/LoadedAssembly.cs | 1 - ILSpy.AddIn.Shared/ILSpyAddInPackage.cs | 1 - ILSpy.Tests/Analyzers/AnalyzerScopeTests.cs | 1 - ILSpy/App.xaml.cs | 1 - ILSpy/AppEnv/SingleInstance.cs | 4 ---- ILSpy/Commands/CheckForUpdatesCommand.cs | 1 - ILSpy/Commands/ManageAssemblyListsCommand.cs | 1 - ILSpy/Commands/SaveCodeContextMenuEntry.cs | 1 - ILSpy/Controls/MainToolBar.xaml.cs | 1 - ILSpy/Images/AccessOverlayIcon.cs | 1 - ILSpy/Images/MemberIcon.cs | 1 - ILSpy/Images/TypeIcon.cs | 1 - ILSpy/Metadata/DebugDirectoryTreeNode.cs | 1 - ILSpy/NavigationState.cs | 1 - ILSpy/Properties/WPFAssemblyInfo.cs | 3 --- ILSpy/TextView/DocumentationUIBuilder.cs | 2 -- ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs | 1 - 128 files changed, 1 insertion(+), 167 deletions(-) diff --git a/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs b/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs index 44b6761ee..0af5f084c 100644 --- a/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs +++ b/ICSharpCode.BamlDecompiler/Baml/KnownThings.g.cs @@ -1143,7 +1143,6 @@ namespace ICSharpCode.BamlDecompiler.Baml resources[59] = ("SystemColors", "WindowFrameColorKey", "WindowFrameColor"); resources[60] = ("SystemColors", "WindowTextColorKey", "WindowTextColor"); - resources[63] = ("SystemFonts", "CaptionFontSizeKey", "CaptionFontSize"); resources[64] = ("SystemFonts", "CaptionFontFamilyKey", "CaptionFontFamily"); resources[65] = ("SystemFonts", "CaptionFontStyleKey", "CaptionFontStyle"); @@ -1175,7 +1174,6 @@ namespace ICSharpCode.BamlDecompiler.Baml resources[91] = ("SystemFonts", "IconFontWeightKey", "IconFontWeight"); resources[92] = ("SystemFonts", "IconFontTextDecorationsKey", "IconFontTextDecorations"); - resources[95] = ("SystemParameters", "ThinHorizontalBorderHeightKey", "ThinHorizontalBorderHeight"); resources[96] = ("SystemParameters", "ThinVerticalBorderWidthKey", "ThinVerticalBorderWidth"); resources[97] = ("SystemParameters", "CursorWidthKey", "CursorWidth"); @@ -1314,7 +1312,6 @@ namespace ICSharpCode.BamlDecompiler.Baml resources[230] = ("ToolBar", "TextBoxStyleKey", "ToolBarTextBoxStyle"); resources[231] = ("ToolBar", "MenuStyleKey", "ToolBarMenuStyle"); - resources[234] = ("SystemColors", "InactiveSelectionHighlightBrushKey", "InactiveSelectionHighlightBrush"); resources[235] = ("SystemColors", "InactiveSelectionHighlightTextBrushKey", "InactiveSelectionHighlightTextBrush"); diff --git a/ICSharpCode.Decompiler.TestRunner/Program.cs b/ICSharpCode.Decompiler.TestRunner/Program.cs index 041d8558b..af2216a34 100644 --- a/ICSharpCode.Decompiler.TestRunner/Program.cs +++ b/ICSharpCode.Decompiler.TestRunner/Program.cs @@ -54,8 +54,3 @@ public static class Program return null; } } - - - - - diff --git a/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs b/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs index d2597c095..5dfa514e6 100644 --- a/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs +++ b/ICSharpCode.Decompiler.Tests/Helpers/Tester.cs @@ -137,7 +137,6 @@ namespace ICSharpCode.Decompiler.Tests.Helpers await RefAssembliesToolset.Fetch("5.0.0", sourcePath: "ref/net5.0").ConfigureAwait(false); await RefAssembliesToolset.Fetch("10.0.0-rc.2.25502.107", sourcePath: "ref/net10.0").ConfigureAwait(false); - #if DEBUG await BuildTestRunner("win-x86", "Debug").ConfigureAwait(false); await BuildTestRunner("win-x64", "Debug").ConfigureAwait(false); @@ -185,7 +184,6 @@ namespace ICSharpCode.Decompiler.Tests.Helpers otherOptions += "/exe "; } - if (options.HasFlag(AssemblerOptions.UseDebug)) { otherOptions += "/debug "; diff --git a/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs b/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs index 3a27a0e57..c9de05156 100644 --- a/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.cs +++ b/ICSharpCode.Decompiler.Tests/Helpers/TestsAssemblyOutput.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; diff --git a/ICSharpCode.Decompiler.Tests/Semantics/ConversionTests.cs b/ICSharpCode.Decompiler.Tests/Semantics/ConversionTests.cs index 80ca2165b..b12ba8915 100644 --- a/ICSharpCode.Decompiler.Tests/Semantics/ConversionTests.cs +++ b/ICSharpCode.Decompiler.Tests/Semantics/ConversionTests.cs @@ -420,7 +420,6 @@ namespace ICSharpCode.Decompiler.Tests.Semantics Assert.That(ExplicitConversion(typeof(nuint), typeof(UIntPtr)), Is.EqualTo(C.IdentityConversion)); } - [Test] public void NIntEnumConversion() { @@ -440,7 +439,6 @@ namespace ICSharpCode.Decompiler.Tests.Semantics Assert.That(!IntegerLiteralConversion(long.MaxValue, typeof(nint))); } - [Test] public void IntegerLiteralToNUIntConversions() { @@ -1209,7 +1207,6 @@ class Test { Assert.That(c.IsUserDefined); } - [Test] public void UserDefined_CanUseLiftedEvenIfReturnTypeAlreadyNullable() { diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs index 14907e9a5..619c741c0 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/Async.cs @@ -180,7 +180,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness } } - public async Task AwaitMultipleCatchBlocks2(Task task) { try diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/ComInterop.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/ComInterop.cs index c2d3a1019..6a2831e33 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/ComInterop.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/ComInterop.cs @@ -16,7 +16,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness Console.WriteLine(Marshal.GetComSlotForMethodInfo(typeof(IMixedPropsAndMethods).GetEvent("MyEvent1").RemoveMethod)); } - [Guid("761618B8-3994-449A-A96B-F1FF2795EA85")] [ComImport] [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/FloatingPointArithmetic.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/FloatingPointArithmetic.cs index 110e15067..1123f7a37 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/FloatingPointArithmetic.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/FloatingPointArithmetic.cs @@ -72,7 +72,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness return (float)val; } - static double CastSignedToDouble(long val) { return (double)val; diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/LINQRaytracer.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/LINQRaytracer.cs index 9b57f6731..b729237a8 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/LINQRaytracer.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/LINQRaytracer.cs @@ -175,7 +175,6 @@ namespace RayTracer Roughness = 150 }; - public static readonly Surface Shiny = new Surface() { Diffuse = pos => Color.Make(1, 1, 1), diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullableTests.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullableTests.cs index 1baf2a283..5a6752a01 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullableTests.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/NullableTests.cs @@ -91,7 +91,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness throw new InvalidOperationException(); } - static T GetValue() { Console.WriteLine("GetValue"); diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs index 5d95d73fe..0990af372 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Correctness/YieldReturn.cs @@ -251,7 +251,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness } } - public static IEnumerable ExceptionHandling() { yield return 'a'; @@ -411,7 +410,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Correctness } } - public static IEnumerable TryFinallyWithTwoExitPoints(bool b) { // Uses goto for multiple non-exceptional exits out of try-finally. diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ConstructorInitializers.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ConstructorInitializers.cs index 2b93b1838..d139c6d5e 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ConstructorInitializers.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ConstructorInitializers.cs @@ -158,7 +158,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty public unsafe int SizeOf = sizeof(SimpleStruct); } - #if CS120 public class ClassWithPrimaryCtorUsingGlobalParameter(int a) { @@ -202,8 +201,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } - - public class ClassWithPrimaryCtorUsingGlobalParameterInExpressionAssignedToProperty(int a) { public int A { get; set; } = (int)Math.Abs(Math.PI * (double)a); @@ -235,7 +232,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } - #if CS100 public class PrimaryCtorClassThisChain(Guid id) { diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributeSamples.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributeSamples.cs index 8f4f69e71..f9212c9f1 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributeSamples.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/CustomAttributeSamples.cs @@ -136,7 +136,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.CustomAttributeSamples } } - public class MyClass06 { public int Prop { @@ -156,7 +155,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty.CustomAttributeSamples } } - public class MyClass08 { public int Prop { diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3611.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3611.cs index e7b0d1286..655963d55 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3611.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Issue3611.cs @@ -1,5 +1,3 @@ - - using System; namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Records.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Records.cs index 323283050..0a10fa8c3 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Records.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Records.cs @@ -143,7 +143,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty public abstract string AbstractProp { get; } } - public abstract record BaseRecord { public string Name { get; } diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefLocalsAndReturns.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefLocalsAndReturns.cs index 2731a6f70..1b4fb9372 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefLocalsAndReturns.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/RefLocalsAndReturns.cs @@ -45,7 +45,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } - public delegate ref T RefFunc(); public delegate ref readonly T ReadOnlyRefFunc(); public delegate ref TReturn RefFunc(T1 param1); diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ShortCircuit.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/ShortCircuit.cs index 938e98664..9516ad3cf 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 - namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty { public abstract class ShortCircuit diff --git a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs index ee72b37d6..2fac42565 100644 --- a/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs +++ b/ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs @@ -1698,7 +1698,6 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty } } - #if CS110 && NET70 public static string SwitchOverReadOnlySpanChar1(ReadOnlySpan text) { diff --git a/ICSharpCode.Decompiler.Tests/TypeSystem/ReflectionHelperTests.cs b/ICSharpCode.Decompiler.Tests/TypeSystem/ReflectionHelperTests.cs index fa1a6cd35..66b24d03e 100644 --- a/ICSharpCode.Decompiler.Tests/TypeSystem/ReflectionHelperTests.cs +++ b/ICSharpCode.Decompiler.Tests/TypeSystem/ReflectionHelperTests.cs @@ -89,7 +89,6 @@ namespace ICSharpCode.Decompiler.Tests.TypeSystem Assert.That(compilation.FindType(typeof(Action)).ReflectionName, Is.EqualTo("System.Action`2[[System.Int32],[System.Int16]]")); } - [Test] public void TestFindTypeReflectionNameNullableType() { diff --git a/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemLoaderTests.cs b/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemLoaderTests.cs index df5848146..e98991a37 100644 --- a/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemLoaderTests.cs +++ b/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemLoaderTests.cs @@ -1561,7 +1561,6 @@ namespace ICSharpCode.Decompiler.Tests.TypeSystem AssertConstantField(type, "CNewm", new decimal()); } - [Test] public void ConstantFieldsSizeOf() { @@ -1654,7 +1653,6 @@ namespace ICSharpCode.Decompiler.Tests.TypeSystem Assert.That(c.GetMethods(m => m.Name == "GetCollectionByQuery2").Count(), Is.EqualTo(1)); } - [Test] public void AttributesUsingNestedMembers() { diff --git a/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemTestCase.cs b/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemTestCase.cs index 514da7f0f..e3135e43e 100644 --- a/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemTestCase.cs +++ b/ICSharpCode.Decompiler.Tests/TypeSystem/TypeSystemTestCase.cs @@ -495,7 +495,6 @@ namespace ICSharpCode.Decompiler.Tests.TypeSystem public const int SObl = sizeof(bool); public const int SOe = sizeof(MyEnum); - public const byte CNewb = new byte(); public const sbyte CNewsb = new sbyte(); public const char CNewc = new char(); diff --git a/ICSharpCode.Decompiler.Tests/Util/FileUtilityTests.cs b/ICSharpCode.Decompiler.Tests/Util/FileUtilityTests.cs index f50225247..abd9fbea0 100644 --- a/ICSharpCode.Decompiler.Tests/Util/FileUtilityTests.cs +++ b/ICSharpCode.Decompiler.Tests/Util/FileUtilityTests.cs @@ -106,7 +106,6 @@ namespace ICSharpCode.Decompiler.Tests.Util Assert.That(!FileUtility.IsBaseDirectory(@"C:\", @"D:\a\b\hello")); } - [Test] public void TestIsBaseDirectoryRelative() { diff --git a/ICSharpCode.Decompiler/CSharp/CallBuilder.cs b/ICSharpCode.Decompiler/CSharp/CallBuilder.cs index 82977db20..86088f296 100644 --- a/ICSharpCode.Decompiler/CSharp/CallBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/CallBuilder.cs @@ -2057,7 +2057,6 @@ namespace ICSharpCode.Decompiler.CSharp } } - TranslatedExpression HandleDelegateConstruction(IType delegateType, IMethod method, ExpectedTargetDetails expectedTargetDetails, ILInstruction thisArg, ILInstruction inst) { var invokeMethod = delegateType.GetDelegateInvokeMethod(); diff --git a/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs b/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs index 0e79d9b5d..1039aa45d 100644 --- a/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/ExpressionBuilder.cs @@ -4723,7 +4723,6 @@ namespace ICSharpCode.Decompiler.CSharp conversionMapping.Add(inputVariable, outputVariable); } - var lhs = ConstructTuple(inst.Pattern); return new AssignmentExpression(lhs, rhs) .WithILInstruction(inst) diff --git a/ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpFormattingOptions.cs b/ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpFormattingOptions.cs index 6b05db972..9154eaffd 100644 --- a/ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpFormattingOptions.cs +++ b/ICSharpCode.Decompiler/CSharp/OutputVisitor/CSharpFormattingOptions.cs @@ -162,8 +162,6 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor set; } - - public PropertyFormatting AutoPropertyFormatting { get; set; } public PropertyFormatting SimplePropertyFormatting { // tested @@ -848,7 +846,6 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor #endregion - #region Keep formatting public bool KeepCommentsAtFirstColumn { get; diff --git a/ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs b/ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs index 1315fb2fb..1592cd759 100644 --- a/ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs +++ b/ICSharpCode.Decompiler/CSharp/OutputVisitor/ITokenWriter.cs @@ -175,5 +175,3 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor } } } - - diff --git a/ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs b/ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs index 20b3ab7b0..2f52fbdcc 100644 --- a/ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs +++ b/ICSharpCode.Decompiler/CSharp/OutputVisitor/InsertSpecialsDecorator.cs @@ -165,7 +165,3 @@ namespace ICSharpCode.Decompiler.CSharp.OutputVisitor #endregion } } - - - - diff --git a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterDefault.cs b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterDefault.cs index 4fef3766a..4447be86d 100644 --- a/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterDefault.cs +++ b/ICSharpCode.Decompiler/CSharp/ProjectDecompiler/ProjectFileWriterDefault.cs @@ -144,7 +144,6 @@ namespace ICSharpCode.Decompiler.CSharp.ProjectDecompiler w.WriteElementString("Optimize", "true"); w.WriteEndElement(); // (Release) - w.WriteStartElement("ItemGroup"); // References foreach (var r in module.AssemblyReferences) { diff --git a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs index 0fb0233cf..9db00cbe9 100644 --- a/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs +++ b/ICSharpCode.Decompiler/CSharp/Resolver/CSharpOperators.cs @@ -1011,7 +1011,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver } } - OperatorMethod[]? bitwiseAndOperators; public OperatorMethod[] BitwiseAndOperators { @@ -1034,7 +1033,6 @@ namespace ICSharpCode.Decompiler.CSharp.Resolver } } - OperatorMethod[]? logicalOrOperators; public OperatorMethod[] LogicalOrOperators { diff --git a/ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs b/ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs index 0abcfd65d..150191ead 100644 --- a/ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/SequencePointBuilder.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using System.Collections.Immutable; using System.Diagnostics; using System.Linq; @@ -546,7 +545,6 @@ namespace ICSharpCode.Decompiler.CSharp newList.Add(hidden); } - List sequencePointCandidates = function.SequencePointCandidates; int currSPCandidateIndex = 0; diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs b/ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs index 703e8e72c..7e0790b18 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/AstNode.cs @@ -309,7 +309,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax return GetDescendantsImpl(true, descendIntoChildren); } - IEnumerable GetDescendantsImpl(bool includeSelf, Func? descendIntoChildren = null) { if (includeSelf) @@ -923,7 +922,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax } #endregion - /// /// Gets the node that fully contains the range from startLocation to endLocation. /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs b/ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs index b1de6b488..75c70b75d 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/DepthFirstAstVisitor.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.cs index e4314f001..ac54b23c3 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ArrayCreateExpression.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. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs index 3b65703fe..0bba79264 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/BaseReferenceExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs index 8a39a9fdc..593954a7a 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/CheckedExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs index 7e9ca6337..d8b12a5da 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DefaultValueExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs index 988f81097..f58186236 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/DirectionExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public enum FieldDirection diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs index 1ae54e504..66c03460d 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/IsExpression.cs @@ -23,7 +23,6 @@ // 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; namespace ICSharpCode.Decompiler.CSharp.Syntax { @@ -58,7 +57,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax AddChild(type, Roles.Type); } - public override void AcceptVisitor(IAstVisitor visitor) { visitor.VisitIsExpression(this); diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs index ba4195f6c..72cd3f7de 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedArgumentExpression.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. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs index bc782454a..574afe711 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NamedExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs index 20b3c9cad..848c8f910 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/NullReferenceExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs index db6e06da4..a7184246b 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ParenthesizedExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs index 7cb83e4c3..3c36b9a25 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PointerReferenceExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs index 04633de7c..ca02fd933 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/PrimitiveExpression.cs @@ -24,8 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. -using System; - using ICSharpCode.Decompiler.Util; namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -75,7 +73,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax } } - public LiteralFormat Format { get { return format; } set { diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs index 97b4375bc..fa1aacacc 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/QueryExpression.cs @@ -266,7 +266,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax } } - public class QueryWhereClause : QueryClause { public readonly static TokenRole WhereKeywordRole = new TokenRole("where"); diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs index d28559afb..5ec9b2d88 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SizeOfExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs index 0e5989c93..552e9ac39 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/StackAllocExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.cs index d76522ac1..227aca8b6 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/SwitchExpression.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. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs index 3ec5ddad7..9bf0b2a9e 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/ThisReferenceExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs index e7ef1b107..748a412d6 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeOfExpression.cs @@ -24,8 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs index 57c8ea9fa..36434b703 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/TypeReferenceExpression.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. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs index 1cd89fea5..baf9b0ec1 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UncheckedExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs index abba26432..eb06c47fd 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Expressions/UndocumentedExpression.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public enum UndocumentedExpressionType diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs index 6c5bfc2ed..89c000a26 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/AttributeSection.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs index 2d283fc8a..969f311b7 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Comment.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public enum CommentType diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs index 750f2a9f9..cfa69d101 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/Constraint.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs index 303624b91..c8ab82091 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/ExternAliasDeclaration.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs index 353a17baf..d56602b3c 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/GeneralScope/UsingAliasDeclaration.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.cs b/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.cs index 5fcd6c851..07d8d3bba 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNode.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. - namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs b/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs index 7ce94c72e..a7fe085c6 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/PatternMatching/AnyNodeOrNull.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax.PatternMatching { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Roles.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Roles.cs index 4a75b7db9..60c4bbd88 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Roles.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Roles.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public static class Roles diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs index 19ead4b1a..15b4c01cc 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/BreakStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs index 2228076ec..109dbf27e 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/CheckedStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs index d7ed6b1f6..bb8872c73 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ContinueStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs index 03a5d3ecf..0e8c3f4b8 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/DoWhileStatement.cs @@ -22,8 +22,7 @@ // 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; - +// THE SOFTWARE. namespace ICSharpCode.Decompiler.CSharp.Syntax { diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs index 838db4f15..47a035d37 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/EmptyStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs index 70bf0ff8a..5d4e67685 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ExpressionStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs index 1a57ccfb6..9ceb5e647 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/FixedStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs index 70579418e..6655cd86c 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs index 578b1fc28..3e8d314e6 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ForeachStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs index a2ad9f988..feade0e24 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/GotoStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs index 44ab5aaf7..e1615aebd 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/IfElseStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs index 754b17e61..fa6392452 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LabelStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs index 4100d627c..7c30ff6f8 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/LockStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs index 34ae4bc16..b26cfff29 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ReturnStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs index fe3cbde50..86c038a59 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/SwitchStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs index 8fd3e8d56..bdc0d5cd8 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/ThrowStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs index 8739fd508..3f9d8aa69 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/TryCatchStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs index bcd8a3501..08791d14c 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UncheckedStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs index 3c3df5576..45b3438dd 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UnsafeStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs index 8b27cbb31..2526a0842 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/UsingStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs index 08753421d..a67b09721 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/VariableDeclarationStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public class VariableDeclarationStatement : Statement diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs index 77daad3f2..23f11d1b0 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/WhileStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs index 29efe8e68..6c8633d1f 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldBreakStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs index 2847c61d4..75255719b 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/Statements/YieldReturnStatement.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxExtensions.cs b/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxExtensions.cs index af00e17fc..0fa3c5dc9 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxExtensions.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxExtensions.cs @@ -18,7 +18,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs b/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs index 2ddce05e0..d96fd43d6 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/SyntaxTree.cs @@ -116,7 +116,6 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax } } - protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { SyntaxTree o = other as SyntaxTree; diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs b/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs index ac9f4814d..111e45ad0 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/FixedVariableInitializer.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { /// diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs b/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs index c54b71f07..99d75777d 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/TypeMembers/VariableInitializer.cs @@ -24,7 +24,6 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. - namespace ICSharpCode.Decompiler.CSharp.Syntax { public class VariableInitializer : AstNode diff --git a/ICSharpCode.Decompiler/FlowAnalysis/ControlFlowNode.cs b/ICSharpCode.Decompiler/FlowAnalysis/ControlFlowNode.cs index 7fb47d2cd..161dd6d40 100644 --- a/ICSharpCode.Decompiler/FlowAnalysis/ControlFlowNode.cs +++ b/ICSharpCode.Decompiler/FlowAnalysis/ControlFlowNode.cs @@ -113,7 +113,6 @@ namespace ICSharpCode.Decompiler.FlowAnalysis } } - /// /// Gets whether this dominates . /// diff --git a/ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs b/ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs index f98afe4e5..5f7087a9f 100644 --- a/ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs +++ b/ICSharpCode.Decompiler/IL/ControlFlow/ConditionDetection.cs @@ -520,7 +520,6 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow if (isKeyword1 != isKeyword2) return isKeyword1 ? -1 : 1; - if (isKeyword1) { //for keywords diff --git a/ICSharpCode.Decompiler/IL/ControlFlow/StateRangeAnalysis.cs b/ICSharpCode.Decompiler/IL/ControlFlow/StateRangeAnalysis.cs index 2314532da..81009b8fa 100644 --- a/ICSharpCode.Decompiler/IL/ControlFlow/StateRangeAnalysis.cs +++ b/ICSharpCode.Decompiler/IL/ControlFlow/StateRangeAnalysis.cs @@ -274,7 +274,6 @@ namespace ICSharpCode.Decompiler.IL.ControlFlow rangesForLeave.Add(target, stateRange); } - /// /// Gets a mapping from states to blocks. /// diff --git a/ICSharpCode.Decompiler/IL/Instructions/CompoundAssignmentInstruction.cs b/ICSharpCode.Decompiler/IL/Instructions/CompoundAssignmentInstruction.cs index 58b7ad9e8..c84711e83 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/CompoundAssignmentInstruction.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/CompoundAssignmentInstruction.cs @@ -418,4 +418,3 @@ namespace ICSharpCode.Decompiler.IL } } - diff --git a/ICSharpCode.Decompiler/IL/Instructions/MemoryInstructions.cs b/ICSharpCode.Decompiler/IL/Instructions/MemoryInstructions.cs index 2b3eae4f5..a8e333344 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/MemoryInstructions.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/MemoryInstructions.cs @@ -17,7 +17,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. - namespace ICSharpCode.Decompiler.IL { interface ISupportsUnalignedPrefix diff --git a/ICSharpCode.Decompiler/IL/Instructions/PatternMatching.cs b/ICSharpCode.Decompiler/IL/Instructions/PatternMatching.cs index d89375b1d..97bfc5af7 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/PatternMatching.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/PatternMatching.cs @@ -569,7 +569,6 @@ namespace ICSharpCode.Decompiler.IL } } - /// /// If this instruction is a conversion of the specified kind, return its argument. /// Otherwise, return the instruction itself. diff --git a/ICSharpCode.Decompiler/IL/Instructions/SimpleInstruction.cs b/ICSharpCode.Decompiler/IL/Instructions/SimpleInstruction.cs index 8142cffee..d5d83ab1a 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/SimpleInstruction.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/SimpleInstruction.cs @@ -17,7 +17,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. - namespace ICSharpCode.Decompiler.IL { /// diff --git a/ICSharpCode.Decompiler/IL/Instructions/StringToInt.cs b/ICSharpCode.Decompiler/IL/Instructions/StringToInt.cs index cf54f568c..cdb9bee8a 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/StringToInt.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/StringToInt.cs @@ -17,7 +17,6 @@ // 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 ICSharpCode.Decompiler.TypeSystem; diff --git a/ICSharpCode.Decompiler/IL/Instructions/UsingInstruction.cs b/ICSharpCode.Decompiler/IL/Instructions/UsingInstruction.cs index 876ec9c55..f082457ff 100644 --- a/ICSharpCode.Decompiler/IL/Instructions/UsingInstruction.cs +++ b/ICSharpCode.Decompiler/IL/Instructions/UsingInstruction.cs @@ -17,7 +17,6 @@ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. - namespace ICSharpCode.Decompiler.IL { /// diff --git a/ICSharpCode.Decompiler/IL/PointerArithmeticOffset.cs b/ICSharpCode.Decompiler/IL/PointerArithmeticOffset.cs index ddb461811..132c13856 100644 --- a/ICSharpCode.Decompiler/IL/PointerArithmeticOffset.cs +++ b/ICSharpCode.Decompiler/IL/PointerArithmeticOffset.cs @@ -113,7 +113,6 @@ namespace ICSharpCode.Decompiler.IL return null; } - /// /// Returns true if inst computes the address of a fixed variable; false if it computes the address of a moveable variable. /// (see "Fixed and moveable variables" in the C# specification) diff --git a/ICSharpCode.Decompiler/IL/Transforms/BlockTransform.cs b/ICSharpCode.Decompiler/IL/Transforms/BlockTransform.cs index 0f924c3bd..fabfa301a 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/BlockTransform.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/BlockTransform.cs @@ -68,7 +68,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms } } - /// /// IL transform that runs a list of per-block transforms. /// diff --git a/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs b/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs index c221519ee..b78139c4c 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs @@ -176,4 +176,3 @@ namespace ICSharpCode.Decompiler.IL.Transforms } } - diff --git a/ICSharpCode.Decompiler/IL/Transforms/RemoveDeadVariableInit.cs b/ICSharpCode.Decompiler/IL/Transforms/RemoveDeadVariableInit.cs index 7501338b3..8c73c46f0 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/RemoveDeadVariableInit.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/RemoveDeadVariableInit.cs @@ -79,7 +79,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms } } - // Try to infer IType of stack slots that are of StackType.Ref: foreach (var v in function.Variables) { diff --git a/ICSharpCode.Decompiler/IL/Transforms/TransformAssignment.cs b/ICSharpCode.Decompiler/IL/Transforms/TransformAssignment.cs index 1b6b1b44f..071ce1797 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/TransformAssignment.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/TransformAssignment.cs @@ -550,7 +550,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms return CheckImplicitTruncation(value, type, compilation, allowNullableValue) != ImplicitTruncationResult.ValuePreserved; } - internal enum ImplicitTruncationResult : byte { /// diff --git a/ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs b/ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs index 80935a378..1280b3eae 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/TransformExpressionTrees.cs @@ -1074,7 +1074,6 @@ namespace ICSharpCode.Decompiler.IL.Transforms return initializerBlock; } - return (BuildBlock, ctor.DeclaringType); } diff --git a/ICSharpCode.Decompiler/Metadata/FindTypeDecoder.cs b/ICSharpCode.Decompiler/Metadata/FindTypeDecoder.cs index 65867a030..1c6f5bbe1 100644 --- a/ICSharpCode.Decompiler/Metadata/FindTypeDecoder.cs +++ b/ICSharpCode.Decompiler/Metadata/FindTypeDecoder.cs @@ -61,8 +61,6 @@ namespace ICSharpCode.Decompiler.Metadata this.namespaceName = type.Namespace; } - - public bool GetArrayType(bool elementType, ArrayShape shape) => elementType; public bool GetByReferenceType(bool elementType) => elementType; public bool GetFunctionPointerType(MethodSignature signature) diff --git a/ICSharpCode.Decompiler/Output/ITextOutput.cs b/ICSharpCode.Decompiler/Output/ITextOutput.cs index 82d81f9ea..52b222e9b 100644 --- a/ICSharpCode.Decompiler/Output/ITextOutput.cs +++ b/ICSharpCode.Decompiler/Output/ITextOutput.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.Reflection.Metadata; using ICSharpCode.Decompiler.Disassembler; diff --git a/ICSharpCode.Decompiler/TypeSystem/Implementation/SpecializedMember.cs b/ICSharpCode.Decompiler/TypeSystem/Implementation/SpecializedMember.cs index 2cf6a0fef..7f642dce8 100644 --- a/ICSharpCode.Decompiler/TypeSystem/Implementation/SpecializedMember.cs +++ b/ICSharpCode.Decompiler/TypeSystem/Implementation/SpecializedMember.cs @@ -165,7 +165,6 @@ namespace ICSharpCode.Decompiler.TypeSystem.Implementation bool IEntity.HasAttribute(KnownAttribute attribute) => baseMember.HasAttribute(attribute); IAttribute IEntity.GetAttribute(KnownAttribute attribute) => baseMember.GetAttribute(attribute); - public IEnumerable ExplicitlyImplementedInterfaceMembers { get { // Note: if the interface is generic, then the interface members should already be specialized, diff --git a/ICSharpCode.Decompiler/TypeSystem/TypeKind.cs b/ICSharpCode.Decompiler/TypeSystem/TypeKind.cs index d7839934a..e279e6399 100644 --- a/ICSharpCode.Decompiler/TypeSystem/TypeKind.cs +++ b/ICSharpCode.Decompiler/TypeSystem/TypeKind.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. - namespace ICSharpCode.Decompiler.TypeSystem { /// diff --git a/ICSharpCode.Decompiler/Util/CollectionExtensions.cs b/ICSharpCode.Decompiler/Util/CollectionExtensions.cs index ee2bc9092..5172969af 100644 --- a/ICSharpCode.Decompiler/Util/CollectionExtensions.cs +++ b/ICSharpCode.Decompiler/Util/CollectionExtensions.cs @@ -312,7 +312,6 @@ namespace ICSharpCode.Decompiler.Util } } - #if !NET8_0_OR_GREATER /// /// Returns the maximum element. diff --git a/ICSharpCode.Decompiler/Util/LongSet.cs b/ICSharpCode.Decompiler/Util/LongSet.cs index dc6caa9fa..e4e132929 100644 --- a/ICSharpCode.Decompiler/Util/LongSet.cs +++ b/ICSharpCode.Decompiler/Util/LongSet.cs @@ -123,7 +123,6 @@ namespace ICSharpCode.Decompiler.Util } } - IEnumerable DoIntersectWith(LongSet other) { var enumA = this.Intervals.GetEnumerator(); diff --git a/ICSharpCode.Decompiler/Util/UnicodeNewline.cs b/ICSharpCode.Decompiler/Util/UnicodeNewline.cs index a81824529..4b7d1e041 100644 --- a/ICSharpCode.Decompiler/Util/UnicodeNewline.cs +++ b/ICSharpCode.Decompiler/Util/UnicodeNewline.cs @@ -37,7 +37,6 @@ namespace ICSharpCode.Decompiler.Util /// LF = 0x0A, - CRLF = 0x0D0A, /// @@ -71,7 +70,6 @@ namespace ICSharpCode.Decompiler.Util PS = 0x2029 } - /// /// Defines unicode new lines according to Unicode Technical Report #13 /// http://www.unicode.org/standard/reports/tr13/tr13-5.html @@ -153,7 +151,6 @@ namespace ICSharpCode.Decompiler.Util return 0; } - /// /// Determines if a char is a new line delimiter. /// diff --git a/ICSharpCode.ILSpyX/LoadedAssembly.cs b/ICSharpCode.ILSpyX/LoadedAssembly.cs index 6d75749ca..7f7e81eee 100644 --- a/ICSharpCode.ILSpyX/LoadedAssembly.cs +++ b/ICSharpCode.ILSpyX/LoadedAssembly.cs @@ -33,7 +33,6 @@ using ICSharpCode.Decompiler.Util; using ICSharpCode.ILSpyX.FileLoaders; using ICSharpCode.ILSpyX.PdbProvider; - #nullable enable namespace ICSharpCode.ILSpyX diff --git a/ILSpy.AddIn.Shared/ILSpyAddInPackage.cs b/ILSpy.AddIn.Shared/ILSpyAddInPackage.cs index 359d82bc6..f7420501a 100644 --- a/ILSpy.AddIn.Shared/ILSpyAddInPackage.cs +++ b/ILSpy.AddIn.Shared/ILSpyAddInPackage.cs @@ -64,7 +64,6 @@ namespace ICSharpCode.ILSpy.AddIn public EnvDTE80.DTE2 DTE => (EnvDTE80.DTE2)GetGlobalService(typeof(EnvDTE.DTE)); - ///////////////////////////////////////////////////////////////////////////// // Overridden Package Implementation #region Package Members diff --git a/ILSpy.Tests/Analyzers/AnalyzerScopeTests.cs b/ILSpy.Tests/Analyzers/AnalyzerScopeTests.cs index 528fcaf30..b255e7fa7 100644 --- a/ILSpy.Tests/Analyzers/AnalyzerScopeTests.cs +++ b/ILSpy.Tests/Analyzers/AnalyzerScopeTests.cs @@ -37,7 +37,6 @@ namespace ICSharpCode.ILSpy.Tests.Analyzers } - [Test] public void WhenPublicNestedClass_ThenNotInfiniteLoop() { diff --git a/ILSpy/App.xaml.cs b/ILSpy/App.xaml.cs index f40696616..66f81e7a4 100644 --- a/ILSpy/App.xaml.cs +++ b/ILSpy/App.xaml.cs @@ -159,7 +159,6 @@ namespace ICSharpCode.ILSpy { var services = new ServiceCollection(); - var pluginDir = Path.GetDirectoryName(typeof(App).Module.FullyQualifiedName); if (pluginDir != null) { diff --git a/ILSpy/AppEnv/SingleInstance.cs b/ILSpy/AppEnv/SingleInstance.cs index 124023edc..8fa6e2ce4 100644 --- a/ILSpy/AppEnv/SingleInstance.cs +++ b/ILSpy/AppEnv/SingleInstance.cs @@ -43,7 +43,6 @@ public static class SingleInstance private static Thread? _thread; private static readonly object _syncRoot = new(); - /// /// Returns true if this application is not already started. /// Another instance is contacted via named pipe. @@ -194,7 +193,6 @@ public static class SingleInstance /// public static event EventHandler? NewInstanceDetected; - /// /// Thread function. /// @@ -229,7 +227,6 @@ public static class SingleInstance } } - [Serializable] private sealed record SingleInstanceArguments { // just a storage @@ -242,7 +239,6 @@ public static class SingleInstance } - /// /// Arguments for newly detected application instance. /// diff --git a/ILSpy/Commands/CheckForUpdatesCommand.cs b/ILSpy/Commands/CheckForUpdatesCommand.cs index 492ce02b7..ed5744106 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.Composition; using ICSharpCode.ILSpy.Properties; diff --git a/ILSpy/Commands/ManageAssemblyListsCommand.cs b/ILSpy/Commands/ManageAssemblyListsCommand.cs index 69e9d661a..8e66c9a9d 100644 --- a/ILSpy/Commands/ManageAssemblyListsCommand.cs +++ b/ILSpy/Commands/ManageAssemblyListsCommand.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.Composition; using System.Windows; using System.Windows.Data; diff --git a/ILSpy/Commands/SaveCodeContextMenuEntry.cs b/ILSpy/Commands/SaveCodeContextMenuEntry.cs index fe8e50f80..75a35b208 100644 --- a/ILSpy/Commands/SaveCodeContextMenuEntry.cs +++ b/ILSpy/Commands/SaveCodeContextMenuEntry.cs @@ -31,7 +31,6 @@ using ICSharpCode.ILSpyX.TreeView; using Microsoft.Win32; - namespace ICSharpCode.ILSpy.TextView { [ExportContextMenuEntry(Header = nameof(Resources._SaveCode), Category = nameof(Resources.Save), Icon = "Images/Save")] diff --git a/ILSpy/Controls/MainToolBar.xaml.cs b/ILSpy/Controls/MainToolBar.xaml.cs index e76d19c9c..1c27d76dc 100644 --- a/ILSpy/Controls/MainToolBar.xaml.cs +++ b/ILSpy/Controls/MainToolBar.xaml.cs @@ -89,7 +89,6 @@ namespace ICSharpCode.ILSpy.Controls } } - static UIElement CreateToolbarItem(IExport commandExport) { var command = commandExport.Value; diff --git a/ILSpy/Images/AccessOverlayIcon.cs b/ILSpy/Images/AccessOverlayIcon.cs index d2852f15f..9322ebfba 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. - namespace ICSharpCode.ILSpy { internal enum AccessOverlayIcon diff --git a/ILSpy/Images/MemberIcon.cs b/ILSpy/Images/MemberIcon.cs index 96bf84e78..89a9cb772 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. - namespace ICSharpCode.ILSpy { internal enum MemberIcon diff --git a/ILSpy/Images/TypeIcon.cs b/ILSpy/Images/TypeIcon.cs index dd3db3e54..a3c46212a 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. - namespace ICSharpCode.ILSpy { internal enum TypeIcon diff --git a/ILSpy/Metadata/DebugDirectoryTreeNode.cs b/ILSpy/Metadata/DebugDirectoryTreeNode.cs index 37f6f7e89..6acab3d49 100644 --- a/ILSpy/Metadata/DebugDirectoryTreeNode.cs +++ b/ILSpy/Metadata/DebugDirectoryTreeNode.cs @@ -45,7 +45,6 @@ namespace ICSharpCode.ILSpy.Metadata public override object Icon => Images.ListFolder; public override object ExpandedIcon => Images.ListFolderOpen; - public override bool View(ViewModels.TabPageModel tabPage) { tabPage.Title = Text.ToString(); diff --git a/ILSpy/NavigationState.cs b/ILSpy/NavigationState.cs index 7e7151fa0..04057d399 100644 --- a/ILSpy/NavigationState.cs +++ b/ILSpy/NavigationState.cs @@ -49,7 +49,6 @@ namespace ICSharpCode.ILSpy this.treeNodes = new HashSet(treeNodes); } - public bool Equals(NavigationState other) { if (!this.treeNodes.SetEquals(other.treeNodes)) diff --git a/ILSpy/Properties/WPFAssemblyInfo.cs b/ILSpy/Properties/WPFAssemblyInfo.cs index 3f61d94e6..760303853 100644 --- a/ILSpy/Properties/WPFAssemblyInfo.cs +++ b/ILSpy/Properties/WPFAssemblyInfo.cs @@ -4,8 +4,6 @@ using System.Windows; #endregion - - //In order to begin building localizable applications, set //CultureYouAreCodingWith in your .csproj file //inside a . For example, if you are using US english @@ -15,7 +13,6 @@ using System.Windows; //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] - [assembly: ThemeInfo( ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located //(used if a resource is not found in the page, diff --git a/ILSpy/TextView/DocumentationUIBuilder.cs b/ILSpy/TextView/DocumentationUIBuilder.cs index a671b5f40..b42a9d7a8 100644 --- a/ILSpy/TextView/DocumentationUIBuilder.cs +++ b/ILSpy/TextView/DocumentationUIBuilder.cs @@ -137,7 +137,6 @@ namespace ICSharpCode.ILSpy.TextView AddDocumentationElement(new XmlDocumentationElement(xml, declaringEntity, resolver)); } - /// /// Gets/Sets the name of the parameter that should be shown. /// @@ -321,7 +320,6 @@ namespace ICSharpCode.ILSpy.TextView AddSection(span, children); } - void AddPermission(IEntity referencedEntity, IList children) { Span span = new Span(); diff --git a/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs b/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs index 23e51bf3a..01c39b7d0 100644 --- a/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs +++ b/ILSpy/TreeNodes/ResourceNodes/ImageListResourceEntryNode.cs @@ -77,7 +77,6 @@ namespace ICSharpCode.ILSpy.TreeNodes } } - public override void Decompile(Language language, ITextOutput output, DecompilationOptions options) { EnsureLazyChildren();