Skip to content

Commit 04456a2

Browse files
Made 'isAnyFunction' more exhaustive as it should be.
1 parent ea613fd commit 04456a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/services.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,12 +1314,13 @@ module ts {
13141314

13151315
function isAnyFunction(node: Node): boolean {
13161316
switch (node.kind) {
1317+
case SyntaxKind.FunctionExpression:
13171318
case SyntaxKind.FunctionDeclaration:
1319+
case SyntaxKind.ArrowFunction:
13181320
case SyntaxKind.Method:
1319-
case SyntaxKind.FunctionExpression:
13201321
case SyntaxKind.GetAccessor:
13211322
case SyntaxKind.SetAccessor:
1322-
case SyntaxKind.ArrowFunction:
1323+
case SyntaxKind.Constructor:
13231324
return true;
13241325
}
13251326
return false;

0 commit comments

Comments
 (0)