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