Merge pull request #3843 from DickvdBrink/dontFallThrough
Don't fall through to the modifier check for get/set keywords
This commit is contained in:
commit
43d6f00599
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue