OBJECT_DATA_MEMBER_NAME (tree-sitter.ts, #3408): a key that reads as a name, `/^[A-Za-z_$][A-Za-z0-9_$]*$/` — `timeoutMs`, `'timeout_ms'`; not `'en-US'`, `'/checkout'` or `42`.
(name: &str)
| 243 | /// `/^[A-Za-z_$][A-Za-z0-9_$]*$/` — `timeoutMs`, `'timeout_ms'`; not `'en-US'`, |
| 244 | /// `'/checkout'` or `42`. |
| 245 | fn is_data_member_name(name: &str) -> bool { |
| 246 | let mut bytes = name.bytes(); |
| 247 | match bytes.next() { |
| 248 | Some(b) if b.is_ascii_alphabetic() || b == b'_' || b == b'$' => {} |
| 249 | _ => return false, |
| 250 | } |
| 251 | bytes.all(|b| b.is_ascii_alphanumeric() || b == b'_' || b == b'$') |
| 252 | } |
| 253 | |
| 254 | /// HOST_GLOBAL_ROOTS (tree-sitter.ts, #2300): `window.App = {…}` defines the |
| 255 | /// global `App`. (`self` is usually `var self = this` in page code, not the global.) |
no test coverage detected