Fixes if statement

This commit is contained in:
Tingan Ho 2016-02-22 05:42:32 +08:00
parent 1a9dadbc03
commit 1b5b146152

View File

@ -156,8 +156,7 @@ namespace ts.NavigationBar {
case SyntaxKind.ClassDeclaration:
topLevelNodes.push(node);
forEach((<ClassDeclaration>node).members, (node) => {
if (node.kind === SyntaxKind.MethodDeclaration ||
node.kind === SyntaxKind.Constructor) {
if (node.kind === SyntaxKind.MethodDeclaration || node.kind === SyntaxKind.Constructor) {
if ((<MethodDeclaration>node).body) {
addTopLevelNodes((<Block>(<MethodDeclaration>node).body).statements, topLevelNodes);
}