Merge pull request #3843 from DickvdBrink/dontFallThrough

Don't fall through to the modifier check for get/set keywords
This commit is contained in:
Mohamed Hegazy 2015-07-13 14:01:29 -07:00
commit 43d6f00599

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)) {