/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Test/ProjectSystemShim/MockRuleSetFile.vb
41 строка
2 KB
Cyrus Najmabadi
Organize VB imports
27 июн 2025, 21:53
27 июн 2025, 21:53
e9c47fd
Код
Авторство
О чём код?
' 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.Collections.Immutable Imports Microsoft.CodeAnalysis Imports Microsoft.CodeAnalysis.Workspaces.ProjectSystem Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.ProjectSystemShim Public Class MockRuleSetFile Implements IRuleSetFile Private ReadOnly _generalOption As ReportDiagnostic Private ReadOnly _specificOptions As ImmutableDictionary(Of String, ReportDiagnostic) Public Sub New(generalOption As ReportDiagnostic, specificOptions As ImmutableDictionary(Of String, ReportDiagnostic)) _generalOption = generalOption _specificOptions = specificOptions End Sub Public ReadOnly Property FilePath As String Implements IRuleSetFile.FilePath Get Throw New NotImplementedException() End Get End Property Public Event UpdatedOnDisk As EventHandler Implements IRuleSetFile.UpdatedOnDisk Public Function GetException() As Exception Implements IRuleSetFile.GetException Throw New NotImplementedException() End Function Public Function GetGeneralDiagnosticOption() As ReportDiagnostic Implements IRuleSetFile.GetGeneralDiagnosticOption Return _generalOption End Function Public Function GetSpecificDiagnosticOptions() As ImmutableDictionary(Of String, ReportDiagnostic) Implements IRuleSetFile.GetSpecificDiagnosticOptions Return _specificOptions End Function End Class End Namespace