mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-10 15:25:54 -06:00
move check outside switch statement
This commit is contained in:
parent
7119165bd0
commit
b416bf2d80
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user