From 23cf64743d67e0a2c278593d2b6fba2fd1eb7220 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Tue, 2 Mar 2021 17:02:26 +0200 Subject: [PATCH] Fix build --- .../MakeConst/MakeConst/MakeConstCodeFixProvider.vb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/VisualBasic/MakeConst/MakeConst/MakeConstCodeFixProvider.vb b/samples/VisualBasic/MakeConst/MakeConst/MakeConstCodeFixProvider.vb index e00dd095c..3c47cdf00 100644 --- a/samples/VisualBasic/MakeConst/MakeConst/MakeConstCodeFixProvider.vb +++ b/samples/VisualBasic/MakeConst/MakeConst/MakeConstCodeFixProvider.vb @@ -15,18 +15,18 @@ Imports Microsoft.CodeAnalysis.VisualBasic.Syntax Public NotInheritable Class MakeConstCodeFixProvider Inherits CodeFixProvider - Public NotOverridable Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) + Public Overrides ReadOnly Property FixableDiagnosticIds As ImmutableArray(Of String) Get Return ImmutableArray.Create(MakeConstAnalyzer.MakeConstDiagnosticId) End Get End Property - Public NotOverridable Overrides Function GetFixAllProvider() As FixAllProvider + Public Overrides Function GetFixAllProvider() As FixAllProvider ' See https://github.com/dotnet/roslyn/blob/master/docs/analyzers/FixAllProvider.md for more information on Fix All Providers Return WellKnownFixAllProviders.BatchFixer End Function - Public NotOverridable Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task + Public Overrides Async Function RegisterCodeFixesAsync(context As CodeFixContext) As Task Dim diagnostic = context.Diagnostics.First() Dim diagnosticSpan = diagnostic.Location.SourceSpan Dim root = Await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(False)