Skip to content

Commit 1a9dadb

Browse files
committed
Fixes typo
1 parent d6485c9 commit 1a9dadb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/services/navigationBar.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,12 @@ namespace ts.NavigationBar {
198198
return true;
199199
}
200200

201-
// Or if it is not parented by another function. i.e all functions
202-
// at module scope are 'top level'.
201+
// Or if it is not parented by another function(except for parent functions that
202+
// are methods and constructors). I.e all functions at module scope are 'top level'.
203203
if (!isFunctionBlock(functionDeclaration.parent)) {
204204
return true;
205205
}
206206
else {
207-
// Except for parent functions that are methods and constructors.
208207
const grandParentKind = functionDeclaration.parent.parent.kind;
209208
if (grandParentKind === SyntaxKind.MethodDeclaration ||
210209
grandParentKind === SyntaxKind.Constructor) {

0 commit comments

Comments
 (0)