提交 6bf004c3 编写于 作者: P Petr Houska

Cleanup.

上级 c23ff63a
using System.Composition;
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license
using System.Composition;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.MoveDeclarationNearReference;
......
......@@ -24,12 +24,12 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.CodeRefactorings
' In VB Statement both for/foreach are split into Statement (header) and the rest
' selecting the header should still count for the whole blockSyntax
If (TypeOf node Is ForEachStatementSyntax And TypeOf node.Parent Is ForEachBlockSyntax) Then
If TypeOf node Is ForEachStatementSyntax And TypeOf node.Parent Is ForEachBlockSyntax Then
Dim foreachStatement = CType(node, ForEachStatementSyntax)
Yield foreachStatement.Parent
End If
If (TypeOf node Is ForStatementSyntax And TypeOf node.Parent Is ForBlockSyntax) Then
If TypeOf node Is ForStatementSyntax And TypeOf node.Parent Is ForBlockSyntax Then
Dim forStatement = CType(node, ForStatementSyntax)
Yield forStatement.Parent
End If
......
......@@ -6,7 +6,6 @@ Imports Microsoft.CodeAnalysis.MoveDeclarationNearReference
Imports Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace Microsoft.CodeAnalysis.VisualBasic.MoveDeclarationNearReference
<ExportCodeRefactoringProvider(LanguageNames.VisualBasic, Name:=PredefinedCodeRefactoringProviderNames.MoveDeclarationNearReference), [Shared]>
<ExtensionOrder(After:=PredefinedCodeRefactoringProviderNames.InlineTemporary)>
Class VisualBasicMoveDeclarationNearReferenceCodeRefactoringProvider
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册