(declaration)
| 59748 | return signature && getReturnTypeOfSignature(signature); |
| 59749 | } |
| 59750 | function containsArgumentsReference(declaration) { |
| 59751 | var links = getNodeLinks(declaration); |
| 59752 | if (links.containsArgumentsReference === undefined) { |
| 59753 | if (links.flags & 8192 /* NodeCheckFlags.CaptureArguments */) { |
| 59754 | links.containsArgumentsReference = true; |
| 59755 | } |
| 59756 | else { |
| 59757 | links.containsArgumentsReference = traverse(declaration.body); |
| 59758 | } |
| 59759 | } |
| 59760 | return links.containsArgumentsReference; |
| 59761 | function traverse(node) { |
| 59762 | if (!node) |
| 59763 | return false; |
| 59764 | switch (node.kind) { |
| 59765 | case 79 /* SyntaxKind.Identifier */: |
| 59766 | return node.escapedText === argumentsSymbol.escapedName && getReferencedValueSymbol(node) === argumentsSymbol; |
| 59767 | case 167 /* SyntaxKind.PropertyDeclaration */: |
| 59768 | case 169 /* SyntaxKind.MethodDeclaration */: |
| 59769 | case 172 /* SyntaxKind.GetAccessor */: |
| 59770 | case 173 /* SyntaxKind.SetAccessor */: |
| 59771 | return node.name.kind === 162 /* SyntaxKind.ComputedPropertyName */ |
| 59772 | && traverse(node.name); |
| 59773 | case 206 /* SyntaxKind.PropertyAccessExpression */: |
| 59774 | case 207 /* SyntaxKind.ElementAccessExpression */: |
| 59775 | return traverse(node.expression); |
| 59776 | case 296 /* SyntaxKind.PropertyAssignment */: |
| 59777 | return traverse(node.initializer); |
| 59778 | default: |
| 59779 | return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse); |
| 59780 | } |
| 59781 | } |
| 59782 | } |
| 59783 | function getSignaturesOfSymbol(symbol) { |
| 59784 | if (!symbol || !symbol.declarations) |
| 59785 | return ts.emptyArray; |
no test coverage detected
searching dependent graphs…