Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
petrroll committed Jul 19, 2019
1 parent c23ff63 commit 6bf004c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
@@ -1,4 +1,6 @@
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;
Expand Down
Expand Up @@ -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
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit 6bf004c

Please sign in to comment.