Made 'isAnyFunction' more exhaustive as it should be.
This commit is contained in:
parent
ea613fd0d8
commit
04456a261a
1 changed files with 4 additions and 3 deletions
|
@ -1314,12 +1314,13 @@ module ts {
|
||||||
|
|
||||||
function isAnyFunction(node: Node): boolean {
|
function isAnyFunction(node: Node): boolean {
|
||||||
switch (node.kind) {
|
switch (node.kind) {
|
||||||
case SyntaxKind.FunctionDeclaration:
|
|
||||||
case SyntaxKind.Method:
|
|
||||||
case SyntaxKind.FunctionExpression:
|
case SyntaxKind.FunctionExpression:
|
||||||
|
case SyntaxKind.FunctionDeclaration:
|
||||||
|
case SyntaxKind.ArrowFunction:
|
||||||
|
case SyntaxKind.Method:
|
||||||
case SyntaxKind.GetAccessor:
|
case SyntaxKind.GetAccessor:
|
||||||
case SyntaxKind.SetAccessor:
|
case SyntaxKind.SetAccessor:
|
||||||
case SyntaxKind.ArrowFunction:
|
case SyntaxKind.Constructor:
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue