(raw: string)
| 147 | } |
| 148 | |
| 149 | function parseLegacyKey(raw: string): string | null { |
| 150 | const text = raw.trim(); |
| 151 | const quoted = parseLegacyStringLiteral(text); |
| 152 | if (quoted !== null && quoted.trim().length > 0) return quoted; |
| 153 | return /^[A-Za-z_$][\w$]*$/.test(text) ? text : null; |
| 154 | } |
| 155 | |
| 156 | function parseLegacyEditmodeObject(raw: string): EditmodeTokens | null { |
| 157 | const text = raw.trim(); |
no test coverage detected