Skip to content

Commit b416bf2

Browse files
committed
move check outside switch statement
1 parent 7119165 commit b416bf2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/services.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3793,15 +3793,15 @@ module ts {
37933793
return undefined;
37943794
}
37953795

3796+
if (isLabelName(node)) {
3797+
return undefined;
3798+
}
3799+
37963800
let symbol = typeInfoResolver.getSymbolAtLocation(node);
37973801
if (!symbol) {
37983802
// Try getting just type at this position and show
37993803
switch (node.kind) {
38003804
case SyntaxKind.Identifier:
3801-
if(isLabelName(node)){
3802-
return undefined;
3803-
}
3804-
// Fall through.
38053805
case SyntaxKind.PropertyAccessExpression:
38063806
case SyntaxKind.QualifiedName:
38073807
case SyntaxKind.ThisKeyword:

0 commit comments

Comments
 (0)