Text of an atom with quoted-atom quotes stripped (`'EXIT'` → `EXIT`).
(node: SyntaxNode, source: string)
| 29 | |
| 30 | /** Text of an atom with quoted-atom quotes stripped (`'EXIT'` → `EXIT`). */ |
| 31 | function atomText(node: SyntaxNode, source: string): string { |
| 32 | return getNodeText(node, source).replace(/^'([\s\S]*)'$/, '$1'); |
| 33 | } |
| 34 | |
| 35 | function collapseWs(text: string): string { |
| 36 | return text.replace(/\s+/g, ' ').trim(); |
no test coverage detected