(s: string)
| 513 | |
| 514 | /** True if the string matches the expected pattern for a symbol */ |
| 515 | export function matchesSymbol(s: string): boolean { |
| 516 | return ( |
| 517 | /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(s) || |
| 518 | (s.length >= 2 && s[0] === '`' && s[s.length - 1] === '`') |
| 519 | ); |
| 520 | } |
| 521 | |
| 522 | export function matchesString(s: string): boolean { |
| 523 | if (s.length >= 2 && s[0] === "'" && s[s.length - 1] === "'") { |
no outgoing calls
no test coverage detected