提交 b5d5238a 编写于 作者: S Sam Harwell

Update comments for some remaining exclusions

上级 2273ecb3
......@@ -1367,8 +1367,7 @@ public C(Task<I> [|task|])
}", options);
}
#if !CODE_STYLE // Below test is not applicable for CodeStyle layer as attempting to fetch
// an editorconfig string representation for this invalid option fails.
#if !CODE_STYLE // Below test is not applicable for CodeStyle layer as attempting to fetch an editorconfig string representation for this invalid option fails.
[WorkItem(37326, "https://github.com/dotnet/roslyn/issues/37326")]
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsRemoveUnusedParameters)]
public async Task RegressionTest_ShouldReportUnusedParameter_02()
......
......@@ -101,7 +101,7 @@ protected sealed override void InitializeWorker(AnalysisContext context)
// However, this is a special analyzer that is directly invoked by the analysis host (IDE), so we do this check here.
ReportDiagnostic severity;
if (
#if !CODE_STYLE
#if !CODE_STYLE // Uses Roslyn 3.8 API
compilationWithAnalyzers.Compilation.Options.SyntaxTreeOptionsProvider != null &&
compilationWithAnalyzers.Compilation.Options.SyntaxTreeOptionsProvider.TryGetDiagnosticValue(tree, IDEDiagnosticIds.RemoveUnnecessarySuppressionDiagnosticId, out severity) ||
#endif
......
......@@ -1121,7 +1121,7 @@ public static bool IsDefaultExpressionContext(this SyntaxTree syntaxTree, int po
return true;
}
#if !CODE_STYLE
#if !CODE_STYLE // FunctionPointerParameterListSyntax added in 3.8
if (token.IsKind(SyntaxKind.CommaToken) &&
token.Parent.IsKind(SyntaxKindEx.FunctionPointerParameterList, out FunctionPointerParameterListSyntax funcPtrParamList))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册