(node)
| 144775 | return ts.isPropertyAccessExpression(node) ? propertyAccessLeftHandSide(node.expression) : node; |
| 144776 | } |
| 144777 | function importNameForConvertToDefaultImport(node) { |
| 144778 | switch (node.kind) { |
| 144779 | case 266 /* SyntaxKind.ImportDeclaration */: |
| 144780 | var importClause = node.importClause, moduleSpecifier = node.moduleSpecifier; |
| 144781 | return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 268 /* SyntaxKind.NamespaceImport */ && ts.isStringLiteral(moduleSpecifier) |
| 144782 | ? importClause.namedBindings.name |
| 144783 | : undefined; |
| 144784 | case 265 /* SyntaxKind.ImportEqualsDeclaration */: |
| 144785 | return node.name; |
| 144786 | default: |
| 144787 | return undefined; |
| 144788 | } |
| 144789 | } |
| 144790 | function addConvertToAsyncFunctionDiagnostics(node, checker, diags) { |
| 144791 | // need to check function before checking map so that deeper levels of nested callbacks are checked |
| 144792 | if (isConvertibleFunction(node, checker) && !visitedNestedConvertibleFunctions.has(getKeyFromNode(node))) { |
no outgoing calls
no test coverage detected