@@ -144,30 +144,30 @@ public static SyntaxNode GetParentDeclaration(SyntaxToken token)
144144 {
145145 switch ( parent . Kind ( ) )
146146 {
147- case SyntaxKind . VariableDeclarator :
148- case SyntaxKind . Parameter :
149- case SyntaxKind . TypeParameter :
150- case SyntaxKind . CatchDeclaration :
151- case SyntaxKind . ExternAliasDirective :
152- case SyntaxKind . QueryContinuation :
153- case SyntaxKind . FromClause :
154- case SyntaxKind . LetClause :
155- case SyntaxKind . JoinClause :
156- case SyntaxKind . JoinIntoClause :
157- case SyntaxKind . ForEachStatement :
158- case SyntaxKind . UsingDirective :
159- case SyntaxKind . LabeledStatement :
160- case SyntaxKind . AnonymousObjectMemberDeclarator :
161- return parent ;
162-
163- default :
164- var declarationParent = parent as MemberDeclarationSyntax ;
165- if ( declarationParent != null )
166- {
167- return declarationParent ;
168- }
169-
170- break ;
147+ case SyntaxKind . VariableDeclarator :
148+ case SyntaxKind . Parameter :
149+ case SyntaxKind . TypeParameter :
150+ case SyntaxKind . CatchDeclaration :
151+ case SyntaxKind . ExternAliasDirective :
152+ case SyntaxKind . QueryContinuation :
153+ case SyntaxKind . FromClause :
154+ case SyntaxKind . LetClause :
155+ case SyntaxKind . JoinClause :
156+ case SyntaxKind . JoinIntoClause :
157+ case SyntaxKind . ForEachStatement :
158+ case SyntaxKind . UsingDirective :
159+ case SyntaxKind . LabeledStatement :
160+ case SyntaxKind . AnonymousObjectMemberDeclarator :
161+ return parent ;
162+
163+ default :
164+ var declarationParent = parent as MemberDeclarationSyntax ;
165+ if ( declarationParent != null )
166+ {
167+ return declarationParent ;
168+ }
169+
170+ break ;
171171 }
172172
173173 parent = parent . Parent ;
0 commit comments