提交 2432336c 编写于 作者: R RoslynTeam

Fix build break. (changeset 1396930)

上级 702a59af
......@@ -20,7 +20,7 @@ namespace AsyncPackage
/// <summary>
/// Codefix that changes the type of a variable to be Func of Task instead of a void-returning delegate type.
/// </summary>
[ExportCodeFixProvider(AsyncLambdaAnalyzer.AsyncLambdaId1, LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = AsyncLambdaAnalyzer.AsyncLambdaId1), Shared]
public class AsyncLambdaVariableCodeFix : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -11,7 +11,7 @@ namespace AsyncPackage
/// <summary>
/// This Analyzer determines if a method is Async and needs to be returning a Task instead of having a void return type.
/// </summary>
[DiagnosticAnalyzer]
[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic)]
public class AsyncVoidAnalyzer : DiagnosticAnalyzer
{
internal const string AsyncVoidId = "Async001";
......
......@@ -18,7 +18,7 @@ namespace AsyncPackage
/// <summary>
/// This codefix replaces the void return type with Task in any method declaration the AsyncVoidAnalyzer catches
/// </summary>
[ExportCodeFixProvider(AsyncVoidAnalyzer.AsyncVoidId, LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = AsyncVoidAnalyzer.AsyncVoidId), Shared]
public class AsyncVoidCodeFix : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -19,7 +19,7 @@ namespace AsyncPackage
/// <summary>
/// Codefix changes the synchronous operations to it's asynchronous equivalent.
/// </summary>
[ExportCodeFixProvider(BlockingAsyncAnalyzer.BlockingAsyncId, LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = BlockingAsyncAnalyzer.BlockingAsyncId), Shared]
public class BlockingAsyncCodeFix : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -17,7 +17,7 @@ namespace AsyncPackage
/// <summary>
/// Codefix that changes the type of a variable to be Func of Task instead of a void-returning delegate type.
/// </summary>
[ExportCodeFixProvider(CancellationAnalyzer.CancellationId, LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = CancellationAnalyzer.CancellationId), Shared]
public class CancellationCodeFix : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -11,7 +11,7 @@ namespace AsyncPackage
/// <summary>
/// This analyzer will run a codefix on any method that qualifies as async that renames it to follow naming conventions
/// </summary>
[DiagnosticAnalyzer]
[DiagnosticAnalyzer(LanguageNames.CSharp, LanguageNames.VisualBasic)]
public class RenameAsyncAnalyzer : DiagnosticAnalyzer
{
internal const string RenameAsyncId = "Async002";
......
......@@ -18,7 +18,7 @@ namespace AsyncPackage
/// <summary>
/// This codefix adds "Async" to the end of the Method Identifier and does a basic spellcheck in case the user had already tried to type Async
/// </summary>
[ExportCodeFixProvider(RenameAsyncAnalyzer.RenameAsyncId, LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = RenameAsyncAnalyzer.RenameAsyncId), Shared]
public class RenameAsyncCodeFix : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -15,7 +15,7 @@
namespace MakeConstCS
{
[ExportCodeFixProvider("MakeConstCS", LanguageNames.CSharp), Shared]
[ExportCodeFixProvider(LanguageNames.CSharp, Name = "MakeConstCS"), Shared]
internal class MakeConstCodeFixProvider : CodeFixProvider
{
public sealed override ImmutableArray<string> GetFixableDiagnosticIds()
......
......@@ -11,7 +11,7 @@ Imports Microsoft.CodeAnalysis.Formatting
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
<ExportCodeFixProvider("MakeConstVB", LanguageNames.VisualBasic), [Shared]>
<ExportCodeFixProvider(LanguageNames.VisualBasic, Name:="MakeConstVB"), [Shared]>
Class MakeConstCodeFixProvider
Inherits CodeFixProvider
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册