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