diff --git a/src/Compilers/.editorconfig b/src/Compilers/.editorconfig index 05f8a377cac7d..8882ce84e8ca5 100644 --- a/src/Compilers/.editorconfig +++ b/src/Compilers/.editorconfig @@ -12,9 +12,6 @@ dotnet_diagnostic.RS0100.severity = none # RS0102: Braces must not have blank lines between them dotnet_diagnostic.RS0102.severity = none -# IDE0051: Unused member -dotnet_diagnostic.IDE0051.severity = none - # IDE0170: Prefer extended property pattern dotnet_diagnostic.IDE0170.severity = suggestion diff --git a/src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs b/src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs index e5fb9a3c65b75..c064d59fca859 100644 --- a/src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs +++ b/src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs @@ -6660,7 +6660,7 @@ public void ResponseFileSplitting() } [ConditionalFact(typeof(WindowsOnly))] - private void SourceFileQuoting() + public void SourceFileQuoting() { string[] responseFile = new string[] { @"d:\\""abc def""\baz.cs ab""c d""e.cs", @@ -12060,7 +12060,6 @@ at Microsoft.CodeAnalysis.Diagnostics.AnalyzerExecutor.CreateDisablingMessage(Di Assert.Equal(0, result.ExitCode); } -#endif private static ImmutableArray CreateCSharpAnalyzerNetStandard13(string analyzerAssemblyName) { @@ -12221,6 +12220,8 @@ public override void Initialize(AnalysisContext context) return analyzerImage; } +#endif + [WorkItem(406649, "https://devdiv.visualstudio.com/DevDiv/_workitems?id=484417")] [ConditionalFact(typeof(WindowsDesktopOnly), typeof(IsEnglishLocal), Reason = "https://github.com/dotnet/roslyn/issues/30321")] public void MicrosoftDiaSymReaderNativeAltLoadPath() diff --git a/src/Compilers/Core/CodeAnalysisTest/Collections/List/IEnumerable.Generic.Tests.cs b/src/Compilers/Core/CodeAnalysisTest/Collections/List/IEnumerable.Generic.Tests.cs index 63b1cc00bafbe..13d7735555a29 100644 --- a/src/Compilers/Core/CodeAnalysisTest/Collections/List/IEnumerable.Generic.Tests.cs +++ b/src/Compilers/Core/CodeAnalysisTest/Collections/List/IEnumerable.Generic.Tests.cs @@ -155,37 +155,6 @@ private void RepeatTest( RepeatTest((e, i, it) => testCode(e, i), iters); } - private void VerifyModifiedEnumerator( - IEnumerator enumerator, - object expectedCurrent, - bool expectCurrentThrow, - bool atEnd) - { - if (expectCurrentThrow) - { - Assert.Throws( - () => enumerator.Current); - } - else - { - object? current = enumerator.Current; - for (int i = 0; i < 3; i++) - { - Assert.Equal(expectedCurrent, current); - current = enumerator.Current; - } - } - - Assert.Throws( - () => enumerator.MoveNext()); - - if (!!ResetImplemented) - { - Assert.Throws( - () => enumerator.Reset()); - } - } - private void VerifyEnumerator( IEnumerator enumerator, T[] expectedItems) diff --git a/src/Compilers/Core/RebuildTest/RebuildCommandLineTests.cs b/src/Compilers/Core/RebuildTest/RebuildCommandLineTests.cs index fa0dee9b65980..95769465a02a9 100644 --- a/src/Compilers/Core/RebuildTest/RebuildCommandLineTests.cs +++ b/src/Compilers/Core/RebuildTest/RebuildCommandLineTests.cs @@ -38,11 +38,6 @@ private void AddSourceFile(string filePath, string content) FilePathToStreamMap.Add(Path.Combine(BuildPaths.WorkingDirectory, filePath), new TestableFile(content)); } - private void AddReference(string filePath, byte[] imageBytes) - { - FilePathToStreamMap.Add(Path.Combine(BuildPaths.SdkDirectory!, filePath), new TestableFile(imageBytes)); - } - private void AddOutputFile(ref string? filePath) { if (filePath is object) diff --git a/src/Compilers/Test/Core/Compilation/OperationTreeVerifier.cs b/src/Compilers/Test/Core/Compilation/OperationTreeVerifier.cs index 5a17d6ac9d980..8c97ecf3362ba 100644 --- a/src/Compilers/Test/Core/Compilation/OperationTreeVerifier.cs +++ b/src/Compilers/Test/Core/Compilation/OperationTreeVerifier.cs @@ -175,19 +175,6 @@ private static string GetSnippetFromSyntax(SyntaxNode syntax) return $"'{prefix} ... {suffix}'"; } - private static bool ShouldLogType(IOperation operation) - { - var operationKind = (int)operation.Kind; - - // Expressions - if (operationKind >= 0x100 && operationKind < 0x400) - { - return true; - } - - return false; - } - protected void LogString(string str) { if (_pendingIndent) @@ -409,11 +396,6 @@ private void VisitArray(ImmutableArray list, string header, bool logElemen VisitArrayCommon(list, header, logElementCount, logNullForDefault, o => Visit(o)); } - private void VisitArray(ImmutableArray list, string header, bool logElementCount, bool logNullForDefault = false) - { - VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitSymbolArrayElement); - } - private void VisitArray(ImmutableArray list, string header, bool logElementCount, bool logNullForDefault = false) { VisitArrayCommon(list, header, logElementCount, logNullForDefault, VisitStringArrayElement); diff --git a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceAssemblySymbol.vb b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceAssemblySymbol.vb index b325f2d3eb235..78a0e9cea769d 100644 --- a/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceAssemblySymbol.vb +++ b/src/Compilers/VisualBasic/Portable/Symbols/Source/SourceAssemblySymbol.vb @@ -519,12 +519,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Symbols Return _lazyNetModuleAttributesBag End Function - Private Function GetNetModuleAttributes() As ImmutableArray(Of VisualBasicAttributeData) - Dim attributesBag = Me.GetNetModuleAttributesBag() - Debug.Assert(attributesBag.IsSealed) - Return attributesBag.Attributes - End Function - Friend Function GetNetModuleDecodedWellKnownAttributeData() As CommonAssemblyWellKnownAttributeData Dim attributesBag = Me.GetNetModuleAttributesBag() Debug.Assert(attributesBag.IsSealed)