/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/EditorFeatures/VisualBasicTest/KeywordHighlighting/AbstractVisualBasicKeywordHighlighterTests.vb
25 строк
1 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 Microsoft.CodeAnalysis.Collections Imports Microsoft.CodeAnalysis.Editor.UnitTests.Extensions Imports Microsoft.CodeAnalysis.Editor.UnitTests.KeywordHighlighting Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.KeywordHighlighting Public MustInherit Class AbstractVisualBasicKeywordHighlighterTests Inherits AbstractKeywordHighlighterTests Protected Overrides Function GetOptions() As IEnumerable(Of ParseOptions) Return SpecializedCollections.SingletonEnumerable(TestOptions.Regular) End Function Protected Overloads Function TestAsync(element As XElement) As Task Return TestAsync(element.NormalizedValue) End Function Protected Overrides Function CreateWorkspaceFromFile(code As String, options As ParseOptions) As EditorTestWorkspace Return EditorTestWorkspace.CreateVisualBasic(code, options, composition:=Composition) End Function End Class End Namespace