提交 1cc024ef 编写于 作者: C CyrusNajmabadi

Small cleanup.

上级 0fa63a61
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System; using System;
using System.Collections.Generic;
using System.Collections.Immutable; using System.Collections.Immutable;
using System.Linq; using System.Linq;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions; using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeFixes; using Microsoft.CodeAnalysis.CodeFixes;
using System.Collections.Generic;
using Microsoft.CodeAnalysis.Text; using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.DiagnosticComments.CodeFixes namespace Microsoft.CodeAnalysis.DiagnosticComments.CodeFixes
...@@ -18,6 +18,7 @@ internal abstract class AbstractRemoveDocCommentNodeCodeFixProvider<TXmlElementS ...@@ -18,6 +18,7 @@ internal abstract class AbstractRemoveDocCommentNodeCodeFixProvider<TXmlElementS
public override FixAllProvider GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer; public override FixAllProvider GetFixAllProvider() => WellKnownFixAllProviders.BatchFixer;
public abstract override ImmutableArray<string> FixableDiagnosticIds { get; } public abstract override ImmutableArray<string> FixableDiagnosticIds { get; }
protected abstract string DocCommentSignifierToken { get; } protected abstract string DocCommentSignifierToken { get; }
protected abstract SyntaxTriviaList GetRevisedDocCommentTrivia(string docCommentText); protected abstract SyntaxTriviaList GetRevisedDocCommentTrivia(string docCommentText);
...@@ -33,8 +34,6 @@ public async sealed override Task RegisterCodeFixesAsync(CodeFixContext context) ...@@ -33,8 +34,6 @@ public async sealed override Task RegisterCodeFixesAsync(CodeFixContext context)
c => RemoveDuplicateParamTagAsync(context.Document, context.Span, c)), c => RemoveDuplicateParamTagAsync(context.Document, context.Span, c)),
context.Diagnostics); context.Diagnostics);
} }
return;
} }
private TXmlElementSyntax GetParamNode(SyntaxNode root, TextSpan span, CancellationToken cancellationToken = default(CancellationToken)) private TXmlElementSyntax GetParamNode(SyntaxNode root, TextSpan span, CancellationToken cancellationToken = default(CancellationToken))
...@@ -77,8 +76,8 @@ private TXmlElementSyntax GetParamNode(SyntaxNode root, TextSpan span, Cancellat ...@@ -77,8 +76,8 @@ private TXmlElementSyntax GetParamNode(SyntaxNode root, TextSpan span, Cancellat
private class MyCodeAction : CodeAction.DocumentChangeAction private class MyCodeAction : CodeAction.DocumentChangeAction
{ {
public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument) : public MyCodeAction(Func<CancellationToken, Task<Document>> createChangedDocument)
base(FeaturesResources.Remove_tag, createChangedDocument) : base(FeaturesResources.Remove_tag, createChangedDocument)
{ {
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册