move check outside switch statement

This commit is contained in:
Mohamed Hegazy 2015-04-13 12:20:25 -07:00
parent 7119165bd0
commit b416bf2d80

View File

@ -3793,15 +3793,15 @@ module ts {
return undefined;
}
if (isLabelName(node)) {
return undefined;
}
let symbol = typeInfoResolver.getSymbolAtLocation(node);
if (!symbol) {
// Try getting just type at this position and show
switch (node.kind) {
case SyntaxKind.Identifier:
if(isLabelName(node)){
return undefined;
}
// Fall through.
case SyntaxKind.PropertyAccessExpression:
case SyntaxKind.QualifiedName:
case SyntaxKind.ThisKeyword: