Addressing CR feedback

This commit is contained in:
Anders Hejlsberg
2014-12-04 17:43:15 -08:00
parent 816abb19e4
commit b49e2772ea
4 changed files with 72 additions and 21 deletions

View File

@@ -46,11 +46,16 @@ module ts.NavigationBar {
case SyntaxKind.VariableStatement:
forEach((<VariableStatement>node).declarations, visit);
break;
case SyntaxKind.ObjectBindingPattern:
case SyntaxKind.ArrayBindingPattern:
forEach((<BindingPattern>node).elements, visit);
break;
case SyntaxKind.VariableDeclaration:
if (isBindingPattern(node)) {
forEach((<BindingPattern>(<VariableDeclaration>node).name).elements, visit);
visit((<VariableDeclaration>node).name);
break;
}
// Fall through
case SyntaxKind.ClassDeclaration:
case SyntaxKind.EnumDeclaration:
case SyntaxKind.InterfaceDeclaration: