/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/VisualBasic/Impl/Utilities/VisualBasicParseOptionsChangingService.vb
28 строк
1 KB
Sam Harwell
Fix RS0033 by marking constructors obsolete
27 мар 2020, 20:49
27 мар 2020, 20:49
8e7fc3d
Код
Авторство
О чём код?
' Licensed to the .NET Foundation under one or more agreements. ' The .NET Foundation licenses this file to you under the MIT license. ' See the LICENSE file in the project root for more information. Imports System.Composition Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Host.Mef Imports Microsoft.VisualStudio.LanguageServices.Utilities Namespace Microsoft.VisualStudio.LanguageServices.VisualBasic.Utilities <ExportLanguageService(GetType(IParseOptionsChangingService), LanguageNames.VisualBasic), [Shared]> Friend NotInheritable Class VisualBasicParseOptionsChangingService Implements IParseOptionsChangingService <ImportingConstructor> <Obsolete(MefConstruction.ImportingConstructorMessage, True)> Public Sub New() End Sub Public Function CanApplyChange(oldOptions As ParseOptions, newOptions As ParseOptions, maxLangVersion As String) As Boolean Implements IParseOptionsChangingService.CanApplyChange Return False End Function Public Sub Apply(options As ParseOptions, storage As ProjectPropertyStorage) Implements IParseOptionsChangingService.Apply Throw New InvalidOperationException(ServicesVSResources.This_workspace_does_not_support_updating_Visual_Basic_parse_options) End Sub End Class End Namespace