提交 9d10f25b 编写于 作者: C CyrusNajmabadi

Move files.

上级 40a1968e
......@@ -139,7 +139,7 @@
<Compile Include="Classification\TotalClassifierTests.cs" />
<Compile Include="Classification\TotalClassifierTests_Dynamic.cs" />
<Compile Include="CodeActions\AbstractCSharpCodeActionTest.cs" />
<Compile Include="CodeActions\ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.cs" />
<Compile Include="ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.cs" />
<Compile Include="CodeActions\EncapsulateField\EncapsulateFieldTests.cs" />
<Compile Include="CodeActions\ExtractMethod\ExtractMethodTests.cs" />
<Compile Include="CodeActions\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.cs" />
......
......@@ -2,12 +2,12 @@
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.CSharp.CodeRefactorings.ConvertToInterpolatedString;
using Microsoft.CodeAnalysis.CSharp.ConvertToInterpolatedString;
using Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeRefactorings;
using Roslyn.Test.Utilities;
using Xunit;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.CodeActions.ConvertToInterpolatedString
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.ConvertToInterpolatedString
{
public class ConvertPlaceholderToInterpolatedStringTests : AbstractCSharpCodeActionTest
{
......
......@@ -120,7 +120,7 @@
<Compile Include="Classification\SemanticClassifierTests.vb" />
<Compile Include="Classification\SyntacticClassifierTests.vb" />
<Compile Include="CodeActions\AbstractVisualBasicCodeActionTest.vb" />
<Compile Include="CodeActions\ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.vb" />
<Compile Include="ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.vb" />
<Compile Include="CodeActions\EncapsulateField\EncapsulateFieldTests.vb" />
<Compile Include="CodeActions\ExtractMethod\ExtractMethodTests.vb" />
<Compile Include="CodeActions\GenerateDefaultConstructors\GenerateDefaultConstructorsTests.vb" />
......
......@@ -4,17 +4,19 @@ Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.CodeRefactorings
Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests
Imports Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.CodeRefactorings
Imports Microsoft.CodeAnalysis.VisualBasic.ConvertToInterpolatedString
Public Class ConvertPlaceholderToInterpolatedStringTests
Inherits AbstractVisualBasicCodeActionTest
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.ConvertToInterpolatedString
Public Class ConvertPlaceholderToInterpolatedStringTests
Inherits AbstractVisualBasicCodeActionTest
Protected Overrides Function CreateCodeRefactoringProvider(workspace As Workspace) As CodeRefactoringProvider
Return New VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider()
End Function
Protected Overrides Function CreateCodeRefactoringProvider(workspace As Workspace) As CodeRefactoringProvider
Return New VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider()
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestSingleItemSubstitution() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestSingleItemSubstitution() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -22,7 +24,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -30,12 +32,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -43,7 +45,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -51,12 +53,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering2() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering2() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -64,7 +66,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -72,12 +74,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering3() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOrdering3() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -85,7 +87,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -93,12 +95,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOutsideRange() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemOutsideRange() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -106,7 +108,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -114,12 +116,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemDoNotHaveCast() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemDoNotHaveCast() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -127,7 +129,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -135,12 +137,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemWithoutSyntaxErrorDoesNotHaveCast() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestItemWithoutSyntaxErrorDoesNotHaveCast() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -148,7 +150,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -156,12 +158,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestPreserveParenthesis() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestPreserveParenthesis() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -169,7 +171,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -177,12 +179,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestMultiLineExpression() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestMultiLineExpression() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -192,7 +194,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -202,12 +204,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -217,7 +219,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -226,12 +228,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers2() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers2() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -239,7 +241,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -247,12 +249,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers3() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers3() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -266,7 +268,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -279,12 +281,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers4() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers4() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -292,7 +294,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -300,12 +302,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers5() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers5() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -327,7 +329,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -347,12 +349,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers6() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestFormatSpecifiers6() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -363,7 +365,7 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -374,12 +376,12 @@ Module T
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestMultilineStringLiteral2() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestMultilineStringLiteral2() As Task
Dim text = <File>
Imports System
Module T
Sub M()
......@@ -393,7 +395,7 @@ And {1,10} ({1,8:X8})
End Sub
End Module</File>.ConvertTestSourceTag()
Dim expected = <File>
Dim expected = <File>
Imports System
Module T
Sub M()
......@@ -406,30 +408,31 @@ And {value2,10} ({value2,8:X8})
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestAsync(text, expected)
End Function
Await TestAsync(text, expected)
End Function
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestParamsArray() As Task
Dim text = <File>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestParamsArray() As Task
Dim text = <File>
Imports System
Module T
Sub M(args As String())
Dim s = [|String.Format("{0}", args)|]
End Sub
End Module</File>.ConvertTestSourceTag()
Await TestMissingAsync(text)
End Function
Await TestMissingAsync(text)
End Function
<WorkItem(13605, "https://github.com/dotnet/roslyn/issues/13605")>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestInvocationWithNullArguments() As Task
Dim text =
<WorkItem(13605, "https://github.com/dotnet/roslyn/issues/13605")>
<Fact, Trait(Traits.Feature, Traits.Features.CodeActionsConvertToInterpolatedString)>
Public Async Function TestInvocationWithNullArguments() As Task
Dim text =
"Module Module1
Sub Main()
[|TaskAwaiter|]
End Sub
End Module"
Await TestMissingAsync(text)
End Function
End Class
Await TestMissingAsync(text)
End Function
End Class
End Namespace
\ No newline at end of file
......@@ -112,7 +112,7 @@
<Compile Include="CodeFixes\TypeStyle\UseExplicitTypeCodeFixProvider.cs" />
<Compile Include="CodeFixes\TypeStyle\UseImplicitTypeCodeFixProvider.cs" />
<Compile Include="CodeLens\CSharpCodeLensDisplayInfoService.cs" />
<Compile Include="CodeRefactorings\ConvertToInterpolatedString\CSharpConvertPlaceholderToInterpolatedStringRefactoringProvider.cs" />
<Compile Include="ConvertToInterpolatedString\CSharpConvertPlaceholderToInterpolatedStringRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\EncapsulateField\EncapsulateFieldCodeRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\ExtractInterface\ExtractInterfaceCodeRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs" />
......
......@@ -2,13 +2,14 @@
using System.Composition;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.ConvertToInterpolatedString;
using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace Microsoft.CodeAnalysis.CSharp.CodeRefactorings.ConvertToInterpolatedString
namespace Microsoft.CodeAnalysis.CSharp.ConvertToInterpolatedString
{
[ExportCodeRefactoringProvider(LanguageNames.CSharp, Name = PredefinedCodeRefactoringProviderNames.ConvertToInterpolatedString), Shared]
internal partial class CSharpConvertPlaceholderToInterpolatedStringRefactoringProvider :
AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider <InvocationExpressionSyntax, ExpressionSyntax, ArgumentSyntax, LiteralExpressionSyntax>
AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider<InvocationExpressionSyntax, ExpressionSyntax, ArgumentSyntax, LiteralExpressionSyntax>
{
protected override SyntaxNode GetInterpolatedString(string text)
=> SyntaxFactory.ParseExpression("$" + text) as InterpolatedStringExpressionSyntax;
......
......@@ -12,8 +12,9 @@
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Simplification;
using Microsoft.CodeAnalysis.Formatting;
using Microsoft.CodeAnalysis.CodeRefactorings;
namespace Microsoft.CodeAnalysis.CodeRefactorings
namespace Microsoft.CodeAnalysis.ConvertToInterpolatedString
{
internal abstract class AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider<TInvocationExpressionSyntax, TExpressionSyntax, TArgumentSyntax, TLiteralExpressionSyntax> : CodeRefactoringProvider
where TExpressionSyntax : SyntaxNode
......
......@@ -213,7 +213,7 @@
<Compile Include="CodeRefactorings\CodeRefactoringContextExtensions.cs" />
<Compile Include="CodeRefactorings\CodeRefactoring.cs" />
<Compile Include="CodeRefactorings\CodeRefactoringService.cs" />
<Compile Include="CodeRefactorings\ConvertToInterpolatedString\AbstractConvertPlaceholdToInterpolatedStringRefactoringProvider.cs" />
<Compile Include="ConvertToInterpolatedString\AbstractConvertPlaceholdToInterpolatedStringRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\GenerateDefaultConstructors\GenerateDefaultConstructorsCodeRefactoringProvider.cs" />
<Compile Include="CodeRefactorings\GenerateFromMembers\AddConstructorParameters\AddConstructorParametersCodeRefactoringProvider.cs" />
......
......@@ -123,7 +123,7 @@
<Compile Include="CodeFixes\Spellcheck\VisualBasicSpellCheckCodeFixProvider.vb" />
<Compile Include="CodeFixes\Suppression\VisualBasicSuppressionCodeFixProvider.vb" />
<Compile Include="CodeLens\VisualBasicDisplayInfoService.vb" />
<Compile Include="CodeRefactorings\ConvertToInterpolatedString\VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider.vb" />
<Compile Include="ConvertToInterpolatedString\VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider.vb" />
<Compile Include="CodeRefactorings\EncapsulateField\EncapsulateFieldRefactoringProvider.vb" />
<Compile Include="CodeRefactorings\ExtractInterface\ExtractInterfaceCodeRefactoringProvider.vb" />
<Compile Include="CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.ReferenceRewriter.vb" />
......
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Composition
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.CodeRefactorings
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
<ExportCodeRefactoringProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeRefactoringProviderNames.ExtractMethod), [Shared]>
Partial Friend Class VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider
Inherits AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider(Of InvocationExpressionSyntax, ExpressionSyntax, ArgumentSyntax, LiteralExpressionSyntax)
Protected Overrides Function GetInterpolatedString(text As String) As SyntaxNode
Return TryCast(SyntaxFactory.ParseExpression("$" + text), InterpolatedStringExpressionSyntax)
End Function
End Class
\ No newline at end of file
' Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
Imports System.Composition
Imports Microsoft.CodeAnalysis.CodeRefactorings
Imports Microsoft.CodeAnalysis.ConvertToInterpolatedString
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.VisualBasic.ConvertToInterpolatedString
<ExportCodeRefactoringProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeRefactoringProviderNames.ExtractMethod), [Shared]>
Partial Friend Class VisualBasicConvertPlaceholderToInterpolatedStringRefactoringProvider
Inherits AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider(Of InvocationExpressionSyntax, ExpressionSyntax, ArgumentSyntax, LiteralExpressionSyntax)
Protected Overrides Function GetInterpolatedString(text As String) As SyntaxNode
Return TryCast(SyntaxFactory.ParseExpression("$" + text), InterpolatedStringExpressionSyntax)
End Function
End Class
End Namespace
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册