()
| 73703 | } |
| 73704 | return createObjectLiteralType(); |
| 73705 | function createObjectLiteralType() { |
| 73706 | var indexInfos = []; |
| 73707 | if (hasComputedStringProperty) |
| 73708 | indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, stringType)); |
| 73709 | if (hasComputedNumberProperty) |
| 73710 | indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, numberType)); |
| 73711 | if (hasComputedSymbolProperty) |
| 73712 | indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType)); |
| 73713 | var result = createAnonymousType(node.symbol, propertiesTable, ts.emptyArray, ts.emptyArray, indexInfos); |
| 73714 | result.objectFlags |= objectFlags | 128 /* ObjectFlags.ObjectLiteral */ | 131072 /* ObjectFlags.ContainsObjectOrArrayLiteral */; |
| 73715 | if (isJSObjectLiteral) { |
| 73716 | result.objectFlags |= 4096 /* ObjectFlags.JSLiteral */; |
| 73717 | } |
| 73718 | if (patternWithComputedProperties) { |
| 73719 | result.objectFlags |= 512 /* ObjectFlags.ObjectLiteralPatternWithComputedProperties */; |
| 73720 | } |
| 73721 | if (inDestructuringPattern) { |
| 73722 | result.pattern = node; |
| 73723 | } |
| 73724 | return result; |
| 73725 | } |
| 73726 | } |
| 73727 | function isValidSpreadType(type) { |
| 73728 | var t = removeDefinitelyFalsyTypes(mapType(type, getBaseConstraintOrType)); |
no test coverage detected