Don't fall through to the modifier check for get/set keywords

This commit is contained in:
Dick van den Brink 2015-07-13 22:13:11 +02:00
parent 35ca82cfd7
commit 6dcc9fcf65

View file

@ -4546,6 +4546,7 @@ namespace ts {
if (hasKind(node.parent, SyntaxKind.GetAccessor) || hasKind(node.parent, SyntaxKind.SetAccessor)) {
return getGetAndSetOccurrences(<AccessorDeclaration>node.parent);
}
break;
default:
if (isModifier(node.kind) && node.parent &&
(isDeclaration(node.parent) || node.parent.kind === SyntaxKind.VariableStatement)) {