From 0922f74ac59364a243beb49a808d7d093a037391 Mon Sep 17 00:00:00 2001 From: Kuinox Date: Mon, 28 Oct 2024 00:48:21 +0100 Subject: [PATCH] using cleanup. --- src/Draco.Chr/Constraints/PropagationHistory.cs | 1 - src/Draco.Compiler.Cli/Program.cs | 1 - src/Draco.Compiler/Api/Semantics/SemanticModel.cs | 1 - .../Api/Syntax/Extensions/SyntaxNodeTraversalExtensions.cs | 1 - src/Draco.Compiler/Internal/Binding/Binder_Expression.cs | 2 -- src/Draco.Compiler/Internal/Binding/Binder_Lookup.cs | 2 -- src/Draco.Compiler/Internal/Binding/Binder_Type.cs | 1 - src/Draco.Compiler/Internal/Binding/ClassBinder.cs | 3 --- .../Internal/Declarations/SingleModuleDeclaration.cs | 1 - .../Internal/OptimizingIr/Codegen/ClassCodegen.cs | 4 ---- src/Draco.Compiler/Internal/OptimizingIr/Model/IModule.cs | 1 - .../Internal/Symbols/Error/ErrorThisParameterSymbol.cs | 3 --- .../Internal/Symbols/Metadata/AssemblyNameComparer.cs | 1 - .../Internal/Symbols/Metadata/MetadataSymbol.cs | 2 -- .../Internal/Symbols/Metadata/MetadataTypeSymbol.cs | 1 - .../Internal/Symbols/Source/SourceClassSymbol.cs | 2 -- .../Internal/Symbols/Source/SourceThisParameterSymbol.cs | 1 - .../Symbols/Synthetized/DefaultConstructorSymbol.cs | 7 ------- src/Draco.Compiler/Internal/Syntax/Lexer.cs | 1 - src/Draco.Compiler/Internal/Syntax/Parser.cs | 2 -- src/Draco.Debugger/RuntimeValues/ObjectValue.cs | 1 - src/Draco.Fuzzing.Tui/Addons/ExportLcovAddon.cs | 1 - 22 files changed, 40 deletions(-) diff --git a/src/Draco.Chr/Constraints/PropagationHistory.cs b/src/Draco.Chr/Constraints/PropagationHistory.cs index ee089c387..b4faee3f7 100644 --- a/src/Draco.Chr/Constraints/PropagationHistory.cs +++ b/src/Draco.Chr/Constraints/PropagationHistory.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; using Draco.Chr.Rules; diff --git a/src/Draco.Compiler.Cli/Program.cs b/src/Draco.Compiler.Cli/Program.cs index 68671e1cb..c31dae52a 100644 --- a/src/Draco.Compiler.Cli/Program.cs +++ b/src/Draco.Compiler.Cli/Program.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.CommandLine; -using System.CommandLine.Parsing; using System.IO; using System.Linq; using Draco.Compiler.Api; diff --git a/src/Draco.Compiler/Api/Semantics/SemanticModel.cs b/src/Draco.Compiler/Api/Semantics/SemanticModel.cs index e61398d13..7371f98fc 100644 --- a/src/Draco.Compiler/Api/Semantics/SemanticModel.cs +++ b/src/Draco.Compiler/Api/Semantics/SemanticModel.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.Immutable; diff --git a/src/Draco.Compiler/Api/Syntax/Extensions/SyntaxNodeTraversalExtensions.cs b/src/Draco.Compiler/Api/Syntax/Extensions/SyntaxNodeTraversalExtensions.cs index f8dec1fd9..e85657c11 100644 --- a/src/Draco.Compiler/Api/Syntax/Extensions/SyntaxNodeTraversalExtensions.cs +++ b/src/Draco.Compiler/Api/Syntax/Extensions/SyntaxNodeTraversalExtensions.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Draco.Compiler/Internal/Binding/Binder_Expression.cs b/src/Draco.Compiler/Internal/Binding/Binder_Expression.cs index e5ce3ba7e..c8677c549 100644 --- a/src/Draco.Compiler/Internal/Binding/Binder_Expression.cs +++ b/src/Draco.Compiler/Internal/Binding/Binder_Expression.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using Draco.Compiler.Api.Diagnostics; -using Draco.Compiler.Api.Semantics; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Binding.Tasks; using Draco.Compiler.Internal.BoundTree; @@ -13,7 +12,6 @@ using Draco.Compiler.Internal.Solver.Tasks; using Draco.Compiler.Internal.Symbols; using Draco.Compiler.Internal.Symbols.Error; -using Draco.Compiler.Internal.Symbols.Source; using Draco.Compiler.Internal.Symbols.Syntax; using FieldSymbol = Draco.Compiler.Internal.Symbols.FieldSymbol; using FunctionGroupSymbol = Draco.Compiler.Internal.Symbols.Synthetized.FunctionGroupSymbol; diff --git a/src/Draco.Compiler/Internal/Binding/Binder_Lookup.cs b/src/Draco.Compiler/Internal/Binding/Binder_Lookup.cs index ed4abe374..2ecafccde 100644 --- a/src/Draco.Compiler/Internal/Binding/Binder_Lookup.cs +++ b/src/Draco.Compiler/Internal/Binding/Binder_Lookup.cs @@ -2,13 +2,11 @@ using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; -using Draco.Compiler.Api.Diagnostics; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Diagnostics; using Draco.Compiler.Internal.Solver; using Draco.Compiler.Internal.Solver.Tasks; using Draco.Compiler.Internal.Symbols; -using Draco.Compiler.Internal.Symbols.Error; using Draco.Compiler.Internal.Symbols.Synthetized; namespace Draco.Compiler.Internal.Binding; diff --git a/src/Draco.Compiler/Internal/Binding/Binder_Type.cs b/src/Draco.Compiler/Internal/Binding/Binder_Type.cs index 7f13fa46f..80b4b3652 100644 --- a/src/Draco.Compiler/Internal/Binding/Binder_Type.cs +++ b/src/Draco.Compiler/Internal/Binding/Binder_Type.cs @@ -5,7 +5,6 @@ using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Diagnostics; using Draco.Compiler.Internal.Symbols; -using Draco.Compiler.Internal.Symbols.Error; namespace Draco.Compiler.Internal.Binding; diff --git a/src/Draco.Compiler/Internal/Binding/ClassBinder.cs b/src/Draco.Compiler/Internal/Binding/ClassBinder.cs index eb0aa60d5..525d66959 100644 --- a/src/Draco.Compiler/Internal/Binding/ClassBinder.cs +++ b/src/Draco.Compiler/Internal/Binding/ClassBinder.cs @@ -1,11 +1,8 @@ using System; using System.Collections.Generic; using System.Linq; -using System.Text; -using System.Threading.Tasks; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Symbols; -using Draco.Compiler.Internal.Symbols.Source; namespace Draco.Compiler.Internal.Binding; diff --git a/src/Draco.Compiler/Internal/Declarations/SingleModuleDeclaration.cs b/src/Draco.Compiler/Internal/Declarations/SingleModuleDeclaration.cs index 5da878555..b3419e647 100644 --- a/src/Draco.Compiler/Internal/Declarations/SingleModuleDeclaration.cs +++ b/src/Draco.Compiler/Internal/Declarations/SingleModuleDeclaration.cs @@ -3,7 +3,6 @@ using System.Collections.Immutable; using System.Linq; using Draco.Compiler.Api.Syntax; -using Draco.Compiler.Internal.Symbols.Source; using Draco.Compiler.Internal.Utilities; namespace Draco.Compiler.Internal.Declarations; diff --git a/src/Draco.Compiler/Internal/OptimizingIr/Codegen/ClassCodegen.cs b/src/Draco.Compiler/Internal/OptimizingIr/Codegen/ClassCodegen.cs index 5d3ae6088..a3fc5bb9c 100644 --- a/src/Draco.Compiler/Internal/OptimizingIr/Codegen/ClassCodegen.cs +++ b/src/Draco.Compiler/Internal/OptimizingIr/Codegen/ClassCodegen.cs @@ -1,7 +1,3 @@ -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using Draco.Compiler.Api; using Draco.Compiler.Internal.BoundTree; using Draco.Compiler.Internal.Lowering; diff --git a/src/Draco.Compiler/Internal/OptimizingIr/Model/IModule.cs b/src/Draco.Compiler/Internal/OptimizingIr/Model/IModule.cs index c8fc126d3..2578d81c3 100644 --- a/src/Draco.Compiler/Internal/OptimizingIr/Model/IModule.cs +++ b/src/Draco.Compiler/Internal/OptimizingIr/Model/IModule.cs @@ -1,6 +1,5 @@ using System.Collections.Generic; using Draco.Compiler.Internal.Symbols; -using Draco.Compiler.Internal.Symbols.Source; namespace Draco.Compiler.Internal.OptimizingIr.Model; diff --git a/src/Draco.Compiler/Internal/Symbols/Error/ErrorThisParameterSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Error/ErrorThisParameterSymbol.cs index c7632c3d5..f38453e3f 100644 --- a/src/Draco.Compiler/Internal/Symbols/Error/ErrorThisParameterSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Error/ErrorThisParameterSymbol.cs @@ -1,6 +1,3 @@ -using Draco.Compiler.Internal.Binding; -using Draco.Compiler.Internal.Symbols.Source; - namespace Draco.Compiler.Internal.Symbols.Error; internal class ErrorThisParameterSymbol(TypeSymbol type, FunctionSymbol containingSymbol) : ParameterSymbol diff --git a/src/Draco.Compiler/Internal/Symbols/Metadata/AssemblyNameComparer.cs b/src/Draco.Compiler/Internal/Symbols/Metadata/AssemblyNameComparer.cs index fc0d00be7..ac8164d8f 100644 --- a/src/Draco.Compiler/Internal/Symbols/Metadata/AssemblyNameComparer.cs +++ b/src/Draco.Compiler/Internal/Symbols/Metadata/AssemblyNameComparer.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -using System.Linq; using System.Reflection; namespace Draco.Compiler.Internal.Symbols.Metadata; diff --git a/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataSymbol.cs index 7e0ca4a1b..9826b3e7d 100644 --- a/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataSymbol.cs @@ -1,10 +1,8 @@ using System; -using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; using System.Reflection; using System.Reflection.Metadata; -using Draco.Compiler.Internal.Symbols.Synthetized; namespace Draco.Compiler.Internal.Symbols.Metadata; diff --git a/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataTypeSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataTypeSymbol.cs index e1381f9e2..c3cd96f10 100644 --- a/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataTypeSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Metadata/MetadataTypeSymbol.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; diff --git a/src/Draco.Compiler/Internal/Symbols/Source/SourceClassSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Source/SourceClassSymbol.cs index ad6bffe4f..620153e99 100644 --- a/src/Draco.Compiler/Internal/Symbols/Source/SourceClassSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Source/SourceClassSymbol.cs @@ -3,8 +3,6 @@ using System.Collections.Immutable; using System.Diagnostics; using System.Linq; -using System.Threading; -using Draco.Compiler.Api; using Draco.Compiler.Api.Diagnostics; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Binding; diff --git a/src/Draco.Compiler/Internal/Symbols/Source/SourceThisParameterSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Source/SourceThisParameterSymbol.cs index 6c090745b..5c11995ef 100644 --- a/src/Draco.Compiler/Internal/Symbols/Source/SourceThisParameterSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Source/SourceThisParameterSymbol.cs @@ -1,4 +1,3 @@ -using System; using System.Collections.Immutable; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Binding; diff --git a/src/Draco.Compiler/Internal/Symbols/Synthetized/DefaultConstructorSymbol.cs b/src/Draco.Compiler/Internal/Symbols/Synthetized/DefaultConstructorSymbol.cs index 17f6ef483..f1446763e 100644 --- a/src/Draco.Compiler/Internal/Symbols/Synthetized/DefaultConstructorSymbol.cs +++ b/src/Draco.Compiler/Internal/Symbols/Synthetized/DefaultConstructorSymbol.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; using System.Collections.Immutable; -using System.ComponentModel.DataAnnotations; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.BoundTree; using static Draco.Compiler.Internal.BoundTree.BoundTreeFactory; diff --git a/src/Draco.Compiler/Internal/Syntax/Lexer.cs b/src/Draco.Compiler/Internal/Syntax/Lexer.cs index c818e6f77..253f35089 100644 --- a/src/Draco.Compiler/Internal/Syntax/Lexer.cs +++ b/src/Draco.Compiler/Internal/Syntax/Lexer.cs @@ -3,7 +3,6 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using System.Linq; using System.Text; using Draco.Compiler.Api.Diagnostics; using Draco.Compiler.Api.Syntax; diff --git a/src/Draco.Compiler/Internal/Syntax/Parser.cs b/src/Draco.Compiler/Internal/Syntax/Parser.cs index 7d9b594e7..542f1c5ec 100644 --- a/src/Draco.Compiler/Internal/Syntax/Parser.cs +++ b/src/Draco.Compiler/Internal/Syntax/Parser.cs @@ -1,10 +1,8 @@ using System; -using System.Collections.Immutable; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Linq; using Draco.Compiler.Api.Diagnostics; -using Draco.Compiler.Api.Semantics; using Draco.Compiler.Api.Syntax; using Draco.Compiler.Internal.Diagnostics; diff --git a/src/Draco.Debugger/RuntimeValues/ObjectValue.cs b/src/Draco.Debugger/RuntimeValues/ObjectValue.cs index 49b96d1ed..220fee40f 100644 --- a/src/Draco.Debugger/RuntimeValues/ObjectValue.cs +++ b/src/Draco.Debugger/RuntimeValues/ObjectValue.cs @@ -4,7 +4,6 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using ClrDebug; -using Draco.Debugger; namespace Draco.Debugger.RuntimeValues; diff --git a/src/Draco.Fuzzing.Tui/Addons/ExportLcovAddon.cs b/src/Draco.Fuzzing.Tui/Addons/ExportLcovAddon.cs index cf6f11688..48f9f93d7 100644 --- a/src/Draco.Fuzzing.Tui/Addons/ExportLcovAddon.cs +++ b/src/Draco.Fuzzing.Tui/Addons/ExportLcovAddon.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Linq; using Draco.Coverage;