We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6485c9 commit 1a9dadbCopy full SHA for 1a9dadb
1 file changed
src/services/navigationBar.ts
@@ -198,13 +198,12 @@ namespace ts.NavigationBar {
198
return true;
199
}
200
201
- // Or if it is not parented by another function. i.e all functions
202
- // at module scope are 'top level'.
+ // Or if it is not parented by another function(except for parent functions that
+ // are methods and constructors). I.e all functions at module scope are 'top level'.
203
if (!isFunctionBlock(functionDeclaration.parent)) {
204
205
206
else {
207
- // Except for parent functions that are methods and constructors.
208
const grandParentKind = functionDeclaration.parent.parent.kind;
209
if (grandParentKind === SyntaxKind.MethodDeclaration ||
210
grandParentKind === SyntaxKind.Constructor) {
0 commit comments