(node, typeChecker)
| 135366 | return !!(symbol.valueDeclaration && ts.getEffectiveModifierFlags(symbol.valueDeclaration) & 32 /* ModifierFlags.Static */ && ts.isClassLike(symbol.valueDeclaration.parent)); |
| 135367 | } |
| 135368 | function tryGetObjectLiteralContextualType(node, typeChecker) { |
| 135369 | var type = typeChecker.getContextualType(node); |
| 135370 | if (type) { |
| 135371 | return type; |
| 135372 | } |
| 135373 | var parent = ts.walkUpParenthesizedExpressions(node.parent); |
| 135374 | if (ts.isBinaryExpression(parent) && parent.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */ && node === parent.left) { |
| 135375 | // Object literal is assignment pattern: ({ | } = x) |
| 135376 | return typeChecker.getTypeAtLocation(parent); |
| 135377 | } |
| 135378 | if (ts.isExpression(parent)) { |
| 135379 | // f(() => (({ | }))); |
| 135380 | return typeChecker.getContextualType(parent); |
| 135381 | } |
| 135382 | return undefined; |
| 135383 | } |
| 135384 | function getImportStatementCompletionInfo(contextToken) { |
| 135385 | var keywordCompletion; |
| 135386 | var isKeywordOnlyCompletion = false; |
no outgoing calls
no test coverage detected