(name)
| 73426 | return literalType; |
| 73427 | } |
| 73428 | function isNumericName(name) { |
| 73429 | switch (name.kind) { |
| 73430 | case 162 /* SyntaxKind.ComputedPropertyName */: |
| 73431 | return isNumericComputedName(name); |
| 73432 | case 79 /* SyntaxKind.Identifier */: |
| 73433 | return ts.isNumericLiteralName(name.escapedText); |
| 73434 | case 8 /* SyntaxKind.NumericLiteral */: |
| 73435 | case 10 /* SyntaxKind.StringLiteral */: |
| 73436 | return ts.isNumericLiteralName(name.text); |
| 73437 | default: |
| 73438 | return false; |
| 73439 | } |
| 73440 | } |
| 73441 | function isNumericComputedName(name) { |
| 73442 | // It seems odd to consider an expression of type Any to result in a numeric name, |
| 73443 | // but this behavior is consistent with checkIndexedAccess |
no test coverage detected