mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Fixes if statement
This commit is contained in:
1 parent
1a9dadbc03
commit
1b5b146152
1 file changed
+1
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user