()
| 139998 | var results = ts.some(withoutExpandos) ? withoutExpandos : filteredDeclarations; |
| 139999 | return getConstructSignatureDefinition() || getCallSignatureDefinition() || ts.map(results, function (declaration) { return createDefinitionInfo(declaration, typeChecker, symbol, node, /*unverified*/ false, failedAliasResolution); }); |
| 140000 | function getConstructSignatureDefinition() { |
| 140001 | // Applicable only if we are in a new expression, or we are on a constructor declaration |
| 140002 | // and in either case the symbol has a construct signature definition, i.e. class |
| 140003 | if (symbol.flags & 32 /* SymbolFlags.Class */ && !(symbol.flags & (16 /* SymbolFlags.Function */ | 3 /* SymbolFlags.Variable */)) && (ts.isNewExpressionTarget(node) || node.kind === 134 /* SyntaxKind.ConstructorKeyword */)) { |
| 140004 | var cls = ts.find(filteredDeclarations, ts.isClassLike) || ts.Debug.fail("Expected declaration to have at least one class-like declaration"); |
| 140005 | return getSignatureDefinition(cls.members, /*selectConstructors*/ true); |
| 140006 | } |
| 140007 | } |
| 140008 | function getCallSignatureDefinition() { |
| 140009 | return ts.isCallOrNewExpressionTarget(node) || ts.isNameOfFunctionDeclaration(node) |
| 140010 | ? getSignatureDefinition(filteredDeclarations, /*selectConstructors*/ false) |
no test coverage detected