未验证 提交 fc5fe378 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #45464 from sharwell/rm-conditional

Remove unnecessary conditional compilation
...@@ -6,15 +6,12 @@ ...@@ -6,15 +6,12 @@
using System; using System;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis;
using Roslyn.Utilities; using Roslyn.Utilities;
#if DEBUG
using System.Diagnostics;
#endif
namespace Microsoft.CodeAnalysis namespace Microsoft.CodeAnalysis
{ {
internal partial class SolutionState internal partial class SolutionState
...@@ -226,8 +223,6 @@ private sealed class FinalState : State ...@@ -226,8 +223,6 @@ private sealed class FinalState : State
HasSuccessfullyLoaded = hasSuccessfullyLoaded; HasSuccessfullyLoaded = hasSuccessfullyLoaded;
FinalCompilation = finalCompilationSource; FinalCompilation = finalCompilationSource;
#if DEBUG
if (generatorDriver.GeneratorDriver == null) if (generatorDriver.GeneratorDriver == null)
{ {
// In this case, the finalCompilationSource and compilationWithoutGeneratedFilesSource should point to the // In this case, the finalCompilationSource and compilationWithoutGeneratedFilesSource should point to the
...@@ -235,8 +230,6 @@ private sealed class FinalState : State ...@@ -235,8 +230,6 @@ private sealed class FinalState : State
Debug.Assert(finalCompilationSource.TryGetValue(out var finalCompilation)); Debug.Assert(finalCompilationSource.TryGetValue(out var finalCompilation));
Debug.Assert(object.ReferenceEquals(finalCompilation.Value, compilationWithoutGeneratedFiles)); Debug.Assert(object.ReferenceEquals(finalCompilation.Value, compilationWithoutGeneratedFiles));
} }
#endif
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册